Front End Libraries - React - Exercise 01


As usual I am trying to work locally at the same time using the free code camp setup to complete the challenges. Is the following the equivalent of what’s happening in exercise one behind the scenes.

My guess is yes…

<!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');
      const JSX = React.createElement('h1', {
        children: 'Hello JSX!',
      ReactDOM.render(JSX, rootElement);

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