React Test

In this example below you will see how to do a React Test with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by jcoxhead127, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright jcoxhead127 ©

Technologies

  • HTML
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>React Test</title>
  
  
  
  
  
</head>

<body>

  <div id="root"></app>
  <script src='https://cdnjs.cloudflare.com/ajax/libs/react/16.2.0/umd/react.development.js'></script>

  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/jcoxhead127/react-test-mKyORV */
function Welcome(props) {
  return React.createElement(
    "h1",
    null,
    "Hello, ",
    props.name
  );
}

function App() {
  return React.createElement(
    "div",
    null,
    React.createElement(Welcome, { name: "Sara" }),
    React.createElement(Welcome, { name: "Cahal" }),
    React.createElement(Welcome, { name: "Edite" })
  );
}

ReactDOM.render(React.createElement(App, null), document.getElementById('root'));

Comments