carteb / carte-blanche

An isolated development space with integrated fuzz testing for your components. See them individually, explore them in different states and quickly and confidently develop them.
https://www.youtube.com/watch?v=6g3-TQ6aaw8
MIT License
1.5k stars 46 forks source link

React Look Example #171

Closed mxstbr closed 8 years ago

mxstbr commented 8 years ago

Add react-look example.

The ReactPlugin doesn't work at all, probably because the wrapper around the entire app (which is needed) doesn't get picked up:

<LookRoot config={Presets['react-dom']}>
  {/* Root Component Here */}
</LookRoot>

I have no idea how we could fix that, honestly.

Closes #140

mxstbr commented 8 years ago

Wrapping the root node in a LookRoot component sounds like the worst idea I've heard for CSS-in-JS, and is only doable by our ReactPlugin if we add a special case for it, which I don't think is worth it. Closing for now!