These are chat archives for jdubray/sam
Hello guys, I'm Marcus from Brazil.
Thanks @jdubray for the SAM pattern.
Now a I have one question:
I using Mithril and Mithril has three ways of render
m.render - render one time
m.mount - render and wait for events or m.request
m.route - render, wait for events, m.request or routing change
So in my understating of SAM, for example I never will user m.mount but always use m.render for creating the reactive looping from the view -> action -> model -> state -> view, is correct?
onclickin HTML it would be
onclickin Mithril, similar to
onClickin React -- but typically in plain JS instead of in JSX. Although Mithril does have a JSX equivalent for those so inclined.