We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The React.createContext API allows for a default value to be provided. Couldn't we use that so that StyletronProvider wrapping is optional?
StyletronProvider
This saves every consumer from adding that additional wrapper unless they want to customize the behavior.
styled-components seems to support this out of the box, but styletron goes to a noop mode.
I saw this while doing a comparison in for chrisirhc/react-vis#2 / chrisirhc/react-vis#1 .
For reference the other differences found were syntactical so the big factor is really setup: https://github.com/chrisirhc/react-vis/compare/styledcomponents..styletron
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The React.createContext API allows for a default value to be provided.
Couldn't we use that so that
StyletronProvider
wrapping is optional?This saves every consumer from adding that additional wrapper unless they want to customize the behavior.
styled-components seems to support this out of the box, but styletron goes to a noop mode.
I saw this while doing a comparison in for chrisirhc/react-vis#2 / chrisirhc/react-vis#1 .
For reference the other differences found were syntactical so the big factor is really setup: https://github.com/chrisirhc/react-vis/compare/styledcomponents..styletron
The text was updated successfully, but these errors were encountered: