Package Exports
- styled-modern-css-reset
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (styled-modern-css-reset) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
styled-modern-css-reset
A styled-component wrapper for modern-css-reset.
Installation
npm install styled-modern-css-resetUsage
In the root component:
import Reset from "styled-modern-css-reset";
import React from "react";
export default () => (
<>
<Reset />
<h1>Hello, World!</h1>
</>
);Alternatively, along with your app's global styles:
import { reset } from "styled-modern-css-reset";
import { createGlobalStyle } from "styled-components";
import React from "react";
const globalStyles = createGlobalStyle`
${reset}
// Other styles...
`;