Skip to content

Instantly share code, notes, and snippets.

@titanium-cranium
Last active September 15, 2017 04:16
Show Gist options
  • Save titanium-cranium/9d9f2dbf80c70eb79b4e733d8d74055c to your computer and use it in GitHub Desktop.
Save titanium-cranium/9d9f2dbf80c70eb79b4e733d8d74055c to your computer and use it in GitHub Desktop.

Revisions

  1. titanium-cranium renamed this gist Sep 15, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. titanium-cranium created this gist Sep 15, 2017.
    12 changes: 12 additions & 0 deletions HelloWorld-props.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    var Hello = React.createClass({

    render: function(){
    return (
    <div>
    <p>Hello {this.props.name}</p>
    </div>
    )
    }
    });

    ReactDOM.render(<Hello name="Brendan" />, document.getElementById('app'));