Use html "class" property
As of this PR (https://github.com/substack/hyperx/pull/22) to hyperx, attributes are automatically converted to properties for the few cases where they’re different: class, for, and http-equiv.
This commit is contained in:
@@ -18,9 +18,9 @@ function App (state, dispatch) {
|
||||
}
|
||||
|
||||
return hx`
|
||||
<div.app>
|
||||
<div class="app">
|
||||
${Header(state, dispatch)}
|
||||
<div.content>${getView()}</div>
|
||||
<div class="content">${getView()}</div>
|
||||
</div>
|
||||
`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user