From 6ee30bcdf57ece021e91fd83b64df1022ce3436a Mon Sep 17 00:00:00 2001 From: balu9230 <balu9224@gmail.com> Date: Sun, 18 Oct 2020 16:29:03 +0530 Subject: [PATCH] Added step of importing in index.js before in .css/.scss file Added step of importing in index.js before in .css/.scss file to make instructions more comprehensive. --- docusaurus/docs/adding-css-reset.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docusaurus/docs/adding-css-reset.md b/docusaurus/docs/adding-css-reset.md index c08567124..8e7072654 100644 --- a/docusaurus/docs/adding-css-reset.md +++ b/docusaurus/docs/adding-css-reset.md @@ -8,6 +8,15 @@ This project setup uses [PostCSS Normalize] for adding a [CSS Reset]. To start using it, add `@import-normalize;` anywhere in your CSS file(s). You only need to include it once and duplicate imports are automatically removed. Since you only need to include it once, a good place to add it is `index.css` or `App.css`. + +## `index.js` + +```js +import 'normalize.css'; /*import into index.js first before importing in css or scss file */ + +/* rest of your react-js code */ +``` + ## `index.css` ```css -- GitLab