Anyone know how to use yarn generate for react components? My Google search is burning time. Thanks

Just trying to create a component. My Google search is burning time. Thanks
1 Reply
Daryl
Daryl10mo ago
I'm not sure what is the requirement: Do you only want to create a component? Do you have to use a generator? To create a component you can simply create a .jsx or .tsx file, create a function and return JSX:
// your-file.jsx

const YourComponent = () => {
...extra stuff

return <p>It works.</p>
}
// your-file.jsx

const YourComponent = () => {
...extra stuff

return <p>It works.</p>
}
Want results from more Discord servers?
Add your server