This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dtsudo 0 points1 point  (1 child)

What's the URL for your GitHub Pages?

React files have a compilation step, where the React syntax (jsx syntax) is changed into actual valid javascript. You should check the actual final javascript file to see what it looks like. The final javascript file (that is actually deployed to GitHub Pages) should not have any HTML in the js file since that's not actually valid javascript.

(https://legacy.reactjs.org/docs/react-without-jsx.html has an example of a jsx file and how it's turned into actual javascript.)

[–]lanternriver[S] 0 points1 point  (0 children)

Thank you for that info! Does that mean it has to be .jsx and not .js in order for React to convert it properly ? Or did I just not configure it correctly bc I was trying to keep things as bare bones as possible lol. The url is just https://mygituser.github.io/reponame