Rewrite app in react
Update code from previous commits.