#Package for modulable components and styling in React?

4 messages · Page 1 of 1 (latest)

acoustic spade
#

Is there a nodejs module out there that would allow for components to be modified interactively while on the page?
I was thinking of creating one since I made some changes my team did not ask for, and I'd like to show them both versions. but surely something like that already exists, no? I wasn't able to find anything.

minor tree
#

When I need to share two versions of the same bit of code I just get the two commit IDs. You can checkout to commits directly so I checkout to the first, demo, then checkout to the second. Since most dev envs have hot reload, the demo is pretty smooth. Otherwise you could just paste both components in the code and conditionally render them based on a state. Then just add a button or toggle to change the state.

thick whale
#

Storybook?

#

it's exact purpose is to showcase components / demo / test them. You can even expose your components state so that you can instantly change any of it's state values that you expose