12.0.3 • Published 4 years ago

@fela-next/fela-sort-classnames v12.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

fela-sort-classnames

This enhancer makes sure that the rendered classnames are already ordered alphabetically. This helps to prevent mismatches with React and SSR on Safari due to differences in how objects are iterated.

Installation

yarn add fela-sort-classnames

You may alternatively use npm i --save fela-sort-classnames.

Usage

import { createRenderer } from '@fela-next/fela'
import sortClassNames from '@fela-next/fela-sort-classnames'

const renderer = createRenderer({
  enhancers: [ sortClassNames() ]
})

License

Fela is licensed under the MIT License. Documentation is licensed under Creative Common License. Created with ♥ by @robinweser and all the great contributors.

12.0.3

4 years ago

12.0.2

4 years ago

12.0.1

4 years ago