<body class="page1">
Is there a reason body.classList.add("page1"); m.redraw() wouldn't work?
Note that you can't modify attributes on the node you're rendering to via Mithril alone.
this ok!
view: function() {
document.body.classList.add("layout-auth");
return ....
@millken Try in oncreate/onupdate instead, to save yourself a lot of rendering perf:
oncreate: function() {
document.body.classList.add("layout-auth")
}