Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
// BaconJS (store)
const nameBus = new Bacon.Bus()
const fullData = Bacon.combineTemplate({
  name: nameBus.toProperty("")
})
// Event handlers (actions)
const buttonChange = (e) => {
  nameBus.push(e.target.value)
}
// Function component (view)
const HelloWorld = (props) => 
  (<div>
    <h1>Hello {props.name}</h1>
    <input type="text" onChange={buttonChange} />
  </div>);
  
// Tie everything in a bow
fullData.onValue((data) => {
  ReactDOM.render(<HelloWorld {...data} />, document.body);
})
Console
    Output

    You can jump to the latest bin by adding /latest to your URL

    Dismiss x
    public
    Bin info
    anonymouspro
    0viewers