T
T
teodor7teodor72019-01-31 15:44:04
React
teodor7teodor7, 2019-01-31 15:44:04

How to properly separate admin and visitor page in React js?

New to react. I want to separate the admin panel and the page for the user in MERN. It turns out that one page is made into the react and then the components are loaded. But the admin panel and the user page have a different design and CSS files. How to separate Css so that they do not overlap each other?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Wolf, 2019-01-31
@mannaro

Css-modules, BEM, whatever. This question is not about react, but about CSS.

A
Andrey Okhotnikov, 2019-01-31
@tsepen

I like the css modules approach - it's very convenient, there are no long class names like in BEM. But nevertheless, BEM is also a very popular thing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question