Suppose I want to share some common data object or utility classes among my React projects (locally only). For example, a utility class that performs complex string or data structures manipulation.
Which would be the best way of doing it? Should I create a separated NPM module for the library, and link it to each project?
I have seen some solutions that use create-app-rewired
, but they require some custom getBabelLoader
stuff and it seems too much for such a simple use case.