fela-sort-classnames

12.2.1 • Public • Published

fela-sort-classnames

npm version npm downloads Bundlephobia

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'
import sortClassNames from 'fela-sort-classnames'

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

License

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

Package Sidebar

Install

npm i fela-sort-classnames

Weekly Downloads

2,158

Version

12.2.1

License

MIT

Unpacked Size

6.37 kB

Total Files

6

Last publish

Collaborators

  • rofrischmann