#Package for modulable components and styling in React?
4 messages · Page 1 of 1 (latest)
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.