News for hackers. Stuff that matters.
Re:Utopia, a visual design tool for React, with code as the ... by gervwyk on Tuesday June 15, 2021 @06:27PM (#27522380)
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.

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.
Re:Utopia, a visual design tool for React, with code as the ... by codethief on Wednesday June 16, 2021 @06:12AM (#27526798)
> How would you hydrate the app with data

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