React, warning 'css' is defined but never used no-unused-vars

You do not need "css from" since the css file is already connected to the jsx file. You only do that when using other jsx components, for example:

import SomeComponent from '../SomeComponent.jsx'

Name this "component" only if you need call them in some part of the code.
e.g. Using CSS-Modules. This is only a regular css so load in this manner :

import '../styles/base.css'

But if you still want to keep this unused var you can edit your es-lint, and delete this rule. (Not Recommended)

Tags:

Reactjs

Eslint