Front End Libraries - Setting Up Locallly


I am trying to setup my local machine to complete the front end libraries react challenges.

Where in the github FCC code can I find the section pertaining to react so I have a look at the code and see if I can figure it out by myself?

Hello there,

To clarify: You are wanting to set freeCodeCamp up locally?

If so:

The React section is here:

Hope this helps

1 Like

Thanks for responding.

I can’t say it helped.

I can get it to work locally now but am not sure if this is what’s happening in the background on FCC.

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <script src=""></script>
    <script src=""></script>
    <div id="root"></div>
    <script type="text/javascript">
      const rootElement = document.getElementById('root');
      let h1 = React.createElement('h1', {}, 'Hello JSX!');
      ReactDOM.render(h1, document.getElementById('root'));

So where/how does this

const JSX = <h1>Hello JSX!</h1>

fit into the above code?

Ok I think I may have found solution:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.