examples/cyclejs-chat-app/dist/app.js
function main(sources) {
    const intents = intent(sources)
    const state$ = model(intents.inputValue$, intents.messages$)
    return {
      // Send the virtual tree to the real DOM
      DOM: view(state$),
      // Send our messages to the horizon server
      horizon: intents.writeOps$$,
    }
  }
function main(sources) {
    const intents = intent(sources)
    const state$ = model(intents.inputValue$, intents.messages$)
    return {
      // Send the virtual tree to the real DOM
      DOM: view(state$),
      // Send our messages to the horizon server
      horizon: intents.writeOps$$,
    }
  }
function main ( sources ) { const intents = intent ( sources ) const state$ = model ( intents . inputValue$ , intents . messages$ ) return { // Send the virtual tree to the real DOM DOM : view ( state$ ) , // Send our messages to the horizon server horizon : intents . writeOps$$ , } }
In main we just wire everything together
In main we just wire everything together