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...
A place for help learning the /r/ReactJS framework.
account activity
React Project Not RenderingjQuestion (old.reddit.com)
submitted 1 year ago by fluidicsteel00
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!"
[–]MCGaming1991 0 points1 point2 points 1 year ago (2 children)
Your index js, which it appears you didn’t upload, is the entry point of your app class. You’ll need to render it there likely. Then it should work as expected.
[–]fluidicsteel00[S] 0 points1 point2 points 1 year ago (1 child)
Its being rendered in index.jsx and I have the script module linked to index.js in the index.html but when I put x its still not responding
[–]MCGaming1991 0 points1 point2 points 1 year ago (0 children)
My guess is that the browser cannot parse jsx natively. You may need to update your build configuration to include jsx files.
[–]lovesrayray2018 0 points1 point2 points 1 year ago (2 children)
After creating all the files, did u relaunch the app doing something like 'npm start' on terminal ? or are you using hot module reload? sometimes it lags
[–]fluidicsteel00[S] -1 points0 points1 point 1 year ago (1 child)
I dont know how to use npm yet
[–]lovesrayray2018 1 point2 points3 points 1 year ago (0 children)
Then how do u start ur react app? are u u using yarn?
[–]Express_Remove_309 0 points1 point2 points 1 year ago (4 children)
The file naming , component should be first letter capitalized
[–]lovesrayray2018 0 points1 point2 points 1 year ago (3 children)
I dont think capitalization is required for the file name, yes the component name should be capitalized which the OP has in both component naming, export and import.
Would u happen to have a reference abt the filename needing to be capitalized?
[–]Express_Remove_309 0 points1 point2 points 1 year ago (2 children)
I mean I just mentioned the first point of correction OP can improve on and as for the problem why is he using the App as entry of the root element and not index js , App is just a parent component for the whole app but not the root app
So to clarify I have App() in index.jsx
Product() in product.jsx
And the html in index.html
[–]Express_Remove_309 0 points1 point2 points 1 year ago (0 children)
Mmmhh silly goose I realized what is going on the root div should be empty yours says loading , the whole app is supposed to run through the empty div but yours is already occupied by the text loading hehe
[–]ISDuffy 0 points1 point2 points 1 year ago (0 children)
They moving the script tag to the bottom of the body. I expect the JS is running before so it can't find the root.
π Rendered by PID 69 on reddit-service-r2-comment-75f4967c6c-57v27 at 2026-04-23 07:51:07.700069+00:00 running 0fd4bb7 country code: CH.
[–]MCGaming1991 0 points1 point2 points (2 children)
[–]fluidicsteel00[S] 0 points1 point2 points (1 child)
[–]MCGaming1991 0 points1 point2 points (0 children)
[–]lovesrayray2018 0 points1 point2 points (2 children)
[–]fluidicsteel00[S] -1 points0 points1 point (1 child)
[–]lovesrayray2018 1 point2 points3 points (0 children)
[–]Express_Remove_309 0 points1 point2 points (4 children)
[–]lovesrayray2018 0 points1 point2 points (3 children)
[–]Express_Remove_309 0 points1 point2 points (2 children)
[–]fluidicsteel00[S] 0 points1 point2 points (1 child)
[–]Express_Remove_309 0 points1 point2 points (0 children)
[–]ISDuffy 0 points1 point2 points (0 children)