V
V
Vladimir Golub2019-07-24 12:33:47
React
Vladimir Golub, 2019-07-24 12:33:47

Form when using jss a separate file with styles?

How to create a separate file with styles when using JSS?
At the moment, the styles for the components are written in the style tag in the html file. And for all pages at once, and not just the one that is open.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
krka92, 2019-07-24
@krka92

a file with styles is created (for example, next to the component file) and imported in the JS file
import './style.css'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question