create TodoApp component and app.init function