shock01 / oig

Playing around with ES6, MVVM and stuff like that
1 stars 1 forks source link

Create Example/Element using ReactJS #11

Closed shock01 closed 9 years ago

shock01 commented 9 years ago

Concept

Let viewModel be : {person: {name: "John Doe"}}

Let JSX be: var MY = React.createClass({ displayName:'MY', render:function render(){ return (

{this.props.name}
    );
}
  });

Let html be: