Hacker News new | ask | show | jobs
by gervwyk 1836 days ago
This looks promising! I’ve been waiting for something like this. Will give it a try.

How would you hydrate the app with data while you dev? Feels like adding some storybook like features to test components could be useful.

3 comments

> How would you hydrate the app with data while you dev?

This is precisely what the scenes are for in the storyboard.js file - it allows you to create multiple scenes that render your components with different data / props.

(founder here) You totally can do this, we use it like that all the time. "Dev" edits the running application or component, not a scaffold - so if you've got {list.map(x => <Card>{x}</Card>} you can select each card and it'll map it back to the instance inside the map. Same with ternaries etc.
> How would you hydrate the app with data

Never heard the word "hydrate" in this context before but it sounds very… appropriate :)