Releases: Tylerian/styletron-react-lite
Releases · Tylerian/styletron-react-lite
[email protected]
[email protected]
Changelog:
- Update build step
- Updated lib types
[email protected]
Changelog:
- Added getStyletron helper (it returns a Client if ran from client runtime, otherwise returns Server).
- Added documentation
- Added readme
[email protected]
- Internal refactoring (hooks)
[email protected]
- 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>
[email protected]
Bump version