react-auditor 0.5.1

A blazing-fast Rust CLI to scan JS/TS/React code for best practices, quality, and security issues.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import React from 'react';

function Profile({ userContent }) {
  return (
    <div dangerouslySetInnerHTML={{ __html: userContent }} />
  );
}

function unsafeProtocol() {
  const url = 'http://example.com';
  window.location.href = url;
}

function unsafeIframe() {
  return <iframe src="https://example.com" />;
}

export default Profile;