I have two react Apps that I want to keep separate. However, many of the components are very similar between the two apps.

What is the best approach for sharing components?

Here are some approaches I can think of:

1. Duplicate the components as they may vary slightly
2. Import the files from a folder outside the project scope

thanks