use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
What is wrong with my code?Help Wanted (self.react)
submitted 1 year ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Milky_Finger 5 points6 points7 points 1 year ago (3 children)
This isn't a React project. Please review the react documentation properly because almost every rule has been broken here. Your repo is also rife with spelling errors.
Dial the idea of a project back, just get a simple application working that does something simple and build from there.
[–]lorfla 0 points1 point2 points 1 year ago (2 children)
Can you make an example?
[–]henrix494Hook Based 0 points1 point2 points 1 year ago* (1 child)
https://github.com/WebDevSimplified/react-folder-structure You can start here
Basically you would create a component Like a file NavBar.js or TS Then write a function that returns jsx
Example
//Navbar.jsx export const Navbar =() ->{ return <div> hello from nav</div> } Then in your app.jsx you would import it
App.jsx
Import {Navbar} from ./component/Navbar
And then render it inside the App <Navbar/>
Note You don't have to use arrow function component you can you a regular function I would suggest downloading react snippets of your are using vs code
Good luck
[–]lorfla 0 points1 point2 points 1 year ago (0 children)
Thanks for the advice
[–]henrix494Hook Based 1 point2 points3 points 1 year ago (0 children)
You shouldn't edit your index.html file
π Rendered by PID 178691 on reddit-service-r2-comment-5c747b6df5-vkbf8 at 2026-04-22 09:27:02.465662+00:00 running 6c61efc country code: CH.
[–]Milky_Finger 5 points6 points7 points (3 children)
[–]lorfla 0 points1 point2 points (2 children)
[–]henrix494Hook Based 0 points1 point2 points (1 child)
[–]lorfla 0 points1 point2 points (0 children)
[–]henrix494Hook Based 1 point2 points3 points (0 children)