S
S
Sergey2021-07-14 14:05:46
Sass
Sergey, 2021-07-14 14:05:46

How to add scss styles to React component?

I am creating a library. It would be desirable, that export of a component was already with styles. There is a folder with a component. It has a separate js file and scss stylesheet for it. But how to bind these styles to the component?
I use the Create-react-library library. The webpack config is hidden here by default.
What are the options?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2021-07-14
@firedragon

https://create-react-app.dev/docs/adding-a-sass-st...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question