dependabot[bot] on npm_and_yarn
dependabot[bot] on npm_and_yarn
Bump minimist from 1.2.0 to 1.2… (compare)
dependabot[bot] on npm_and_yarn
dependabot[bot] on npm_and_yarn
Bump cached-path-relative from … (compare)
dependabot[bot] on npm_and_yarn
Bump path-parse from 1.0.5 to 1… (compare)
import {HTTPContext} from '../../http-context-driver'
function FrontPage ({HTTP}) {
return {
HTTP: HTTP.map((ctx: HTTPContext) => {
const outgoing: HTTPContext = {
request: ctx.request,
response: ctx.response,
body: 'FrontPage'
}
return outgoing
})
}
}
export default FrontPage
@mariuslundgard awesome! You got a github star :-)
I hope I can start wrapping https://github.com/marcusnielsen/rxjs-server as a cycle.js driver in the future. And I would love to have the req/res-part available as well.
I just don’t have the time to figure out if I need cycle.js or not in my projects. But I do use most of the thoughts I’ve heard about MVI, but as model, view, interactions, and state.
input$ = DOM.select(document).events('keypress')
DOM.select()
doesn't select from document, is because it's external to your main(). Drivers are the place where you listen to what is external to your main().