Append your component in any part of your html using react-attack
npm install react-attacksh
npm i -D react-attack
`
You use:
`javascript
import "react-attack"
// one time only at top of your application (example global or app)
`
how works and use
> Name change from "ReactAttack" to "reactAttack" <----
`javascript
reactAttack(
"body", // <-- Append to body
"component", // <-- ID of container
HTML // <-- Example with HTML
)
or using a component
// You create a component on-fly as Test + useState!
const TestComponent = () => {
const [test, setTest] = useState("Hello World")
return (
{test}
)
}
reactAttack(
"body", // <-- Append to body
"component", // <-- ID of container
// <-- React Component
)
``