Vojtech Miksu
Vojtech Miksu
Yea, this would be a nice addition since styletron is performance oriented. Assuming it would not add too much to the styletron's bundle size.
Could you wrap/reexport` useStyletron()` and apply the transform there?
What do you mean by extracting shorthands?
What engine do you use?
Any idea how to fix this and keep the current functionality (not reopening portal when you click on the button) ?
I don't currently use this lib with SSR. PRs appreciated!
> I server-side render my React app. However, I use several libraries that unsafely reference `window`. Without any clever code-splitting in place yet, that meant I needed to stub out...
> So I have a `Portal` which renders a component that uses the DOM. Inside of that component, the libs are imported. I'll need to stub out `window.document` before that...
> some sort of a silly bug Must be?
> react 16's new portal api Yes. > react native Maybe? Not sure since I don't use react-native. If somebody is willing to explore / add an example, I'm happy...