README
styletron-singleton
Use Styletron as a singleton. In general, other techniques of sharing an instance is probably better (e.g. via React context), but a singleton may be more convenient in some cases.
Universal, high-performance JavaScript styles
<script type="module">
import styletronSingleton from 'https://cdn.skypack.dev/styletron-singleton';
</script>
Use Styletron as a singleton. In general, other techniques of sharing an instance is probably better (e.g. via React context), but a singleton may be more convenient in some cases.