P
P
Pavel Antonov2018-11-20 09:31:14
npm
Pavel Antonov, 2018-11-20 09:31:14

How to make common components between two react applications?

Guys, the question is actually in the header, there is an application, we are writing the second, in which, in fact, there will be the same components as in the first. What options are there to solve the problem? The components are all stupid, it's not a problem to put them in a separate folder, it's not entirely clear how to put them out correctly and import them into applications. So that the components are as a dependency for applications. Thank you. If you need clarifications, ask in the comments, maybe I described the Wishlist crookedly))
Important note : the whole thing must be local, i.e. I can’t use external repositories.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Laud, 2018-11-20
@freislot

  • You can move this folder to a separate repository and connect it as a git module
  • You can start a local npm repository and publish this component library there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question