This Gist was automatically created by Carbide, a free online programming environment.
Created
April 18, 2017 01:36
-
-
Save carbide-public/e4741ddfa1b6cfe5c444e13df82087f2 to your computer and use it in GitHub Desktop.
untitled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { React, Component } from 'react' | |
import ReactDOM from 'react-dom' | |
const data = { value: "Hello" } | |
const Input = ({ value }) => { | |
<input id='input' value={value} /> | |
} | |
class App extends Component { | |
render(){ | |
return ( | |
<div> | |
<Input props={data} /> | |
</div> | |
) | |
} | |
} | |
ReactDOM.render( | |
<App />, | |
document.getElementById('root') | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment