Hello,
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,
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
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">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script src="https://unpkg.com/react@16.12.0/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16.12.0/umd/react-dom.development.js"></script>
</head>
<body>
<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'));
</script>
</body>
</html>
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.