You may have already encountered the problem that you used the same code in your projects. Whether they are components or functions. You do not want to write your code twice. Then the rule applies: “Write once, run everywhere.”. These cases are suitable for creating NPM libraries.
How to create simple ReactJS package
· 4 min read