Skip to content

Releases: Tylerian/styletron-react-lite

styletron-react-lite@2.1.4

21 Nov 11:12
Compare
Choose a tag to compare

Changelog:

  • Updated Styletron dependencies to latest version which fixes bugs with client-side media query ordering and adds support for undefined values.

styletron-react-lite@2.1.3

18 Oct 14:43
Compare
Choose a tag to compare

Changelog:

  • Update build step
  • Updated lib types

styletron-react-lite@2.1.0

17 Oct 16:37
Compare
Choose a tag to compare

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

17 Oct 15:42
Compare
Choose a tag to compare
  • Internal refactoring (hooks)

styletron-react-lite@2.0.0

17 Oct 15:32
Compare
Choose a tag to compare
  • 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

16 Oct 00:46
Compare
Choose a tag to compare