Skip to content

Instantly share code, notes, and snippets.

@carbide-public
Created April 18, 2017 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carbide-public/e4741ddfa1b6cfe5c444e13df82087f2 to your computer and use it in GitHub Desktop.
Save carbide-public/e4741ddfa1b6cfe5c444e13df82087f2 to your computer and use it in GitHub Desktop.
untitled
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