Componente Simple

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

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
Copyright 0utKast ©


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

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


  <div id="contenido"></div>
  <script src=''></script>


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



/*Downloaded from */
var MensajeHola = React.createClass({
      render: function() {
      return <div>Hola {this.props.nombre}</div>;

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