Re:Utopia, a visual design tool for React, with code as the ...
by rheeseyb on Tuesday June 15, 2021 @07:21PM
(#27522901)
> 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.
Re:Utopia, a visual design tool for React, with code as the ...
by maltenuhn on Wednesday June 16, 2021 @08:14AM
(#27527615)
(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 while you dev? Feels like adding some storybook like features to test components could be useful.