diff --git a/package.json b/package.json new file mode 100644 index 0000000..c218f9d --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "name": "react-doctor-cr-test", + "private": true, + "type": "module", + "dependencies": { + "react": "^18.3.0", + "react-dom": "^18.3.0" + }, + "devDependencies": { + "typescript": "^5.0.0", + "@types/react": "^18.0.0", + "@types/react-dom": "^18.0.0" + } +} diff --git a/src/App.tsx b/src/App.tsx new file mode 100644 index 0000000..801d929 --- /dev/null +++ b/src/App.tsx @@ -0,0 +1,34 @@ +import { createContext, useState } from "react"; +import { AssertiveHints } from "./AssertiveHints.js"; + +const items = ["alpha", "beta", "gamma"]; + +export function App() { + const ThemeContext = createContext("light"); + const [userHtml] = useState(""); + const userInput = "alert('xss')"; + + return ( + +
+
+ click me +