D
D
daima2018-09-07 08:34:28
Template Engines
daima, 2018-09-07 08:34:28

How to make a react application with different styling for each client?

It is planned to make an application for several clients. The filling will be the same, but the design will be different (styles, location of components). How to do it?
If you create a themes folder and stuff stupid components responsible for the location of smart ones and outputting results there, and trim styles for each theme to smart and stupid ones - the bundle will swell like that!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Spirin, 2018-09-07
@rockon404

Yes, there are actually many options. When using any css-in-js library, such as Styled Components, you can switch themes on the fly. For the location of modules, you can use conditions and configurations, at least different entry points with a different set of page components.

A
Anton Anton, 2018-09-07
@Fragster

https://habr.com/company/poiskvps/blog/422487/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question