Initial rendering of a Todos-MVC app. (events are called but don't trigger a re-rendering yet, renderin-function does not yet support updating DOM yet)
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import {render} from "../../packages/csx-custom-elements";
|
||||
import style from "./index.scss";
|
||||
import {MyTodo} from "./components/my-todo";
|
||||
|
||||
// Replace this with an example implementation of the Todos-MVC app
|
||||
// look for inspiration here: https://github.com/shprink/web-components-todo
|
||||
document.body.appendChild(render(<style>{style}</style>));
|
||||
document.body.appendChild(render(<div class="center-me">
|
||||
<h1>Todos MVC</h1>
|
||||
<MyTodo />
|
||||
</div>));
|
||||
|
||||
Reference in New Issue
Block a user