1.0.0-0 • Published 7 years ago
styled-reset-css v1.0.0-0
styled-reset-css
A scoped reset-css component for React and styled-components
This can be used to import components with an external dependency on reset-css without affecting the styles of the rest of your application.
Note: Please DO NOT use the outdated reset-css. normalize.css is the accepted standard for base CSS styles.
npm i styled-reset-css
import React from 'react'
import ResetCSS from 'styled-reset-css'
import DirtyComponent from 'dirty-library'
const App = props => (
<div>
<p>This part isn't affected by reset-css</p>
<ResetCSS>
<DirtyComponent>
This part will have reset-css applied
</DirtyComponent>
</ResetCSS>
</div>
)
MIT License
1.0.0-0
7 years ago