Componente Simple

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

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

Technologies

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

<head>
  <meta charset="UTF-8">
  <title>Componente Simple</title>
  
  
  
  
  
</head>

<body>

  <div id="contenido"></div>
  <script src='https://cdn.rawgit.com/bradleyboy/codepen-react/master/dist/codepen-react-0.1.1.js'></script>

  

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




</body>

</html>

/*Downloaded from https://www.codeseek.co/0utKast/componente-simple-QbyOao */
var MensajeHola = React.createClass({
      render: function() {
      return <div>Hola {this.props.nombre}</div>;
      }
    });

 React.render(<MensajeHola nombre="Juan" />,document.getElementById('contenido'));

Comments