Make initial preview work
Sketch out initial preview

Note that there's still an issue caused by missing initial values for
arrays/objects. This causes JSX rendering to fail sometimes.