@styled/modern-normalize
CSS-normalize library for styled-components.
The original modern-normalize.css
is pulled from sindresorhus/modern-normalize, and parsed into styled ready format.
Usage
npm install --save @styled/modern-normalize
Readme
Read styled-components createGlobalStyle documentation
This is just example
const Root = <ReactFragment> <Normalize /> <App /> </ReactFragment>
For older version of styled-components this API renders to
null
You can also use named imports:
// ES Modules // CommonJSconst Normalize =
You can also import css without Component API:
// Different from `Normalize` // Example usage:injectGlobal` `
License
The MIT License