Releases: Tylerian/styletron-react-lite
Releases · Tylerian/styletron-react-lite
styletron-react-lite@2.1.4
styletron-react-lite@2.1.3
Changelog:
- Update build step
- Updated lib types
styletron-react-lite@2.1.0
Changelog:
- Added getStyletron helper (it returns a Client if ran from client runtime, otherwise returns Server).
- Added documentation
- Added readme
styletron-react-lite@2.0.1
- Internal refactoring (hooks)
styletron-react-lite@2.0.0
- Rewrite of the context API:
Example of use:
import {
StyletronConsumer,
StyletronProvider
} from "styletron-react-lite";
const styletronEngine = new ...
<StyletronProvider engine={styletronEngine}>
<YourComponentTree />
</StyletronProvider>
[...]
<StyletronConsumer>
{
(engine) => (
<SomeEngineDependantComponent engine={engine} />
)
}
</StyletronConsumer>
styletron-react-lite@1.3.4
Bump version