DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Ekim Kael
Ekim Kael

Posted on

How do you stop repeating yourself ?

Do you guys have something like feature helpers?
Like you want to make login or authentication, you grab it/clone/copy it to your application and you're ready to go?

II'm building React/Nextjs app everyday and I feel a bit tired to have to repeat the process on each project

Top comments (1)

Collapse
 
benjioe profile image
Benjioe • Edited on

You can :

  • Create a package and publish it on npm to share it across projects. But if, for one project you need to add features to one of these packages, you can introduce breaking changes on other projects.
  • Create a snippet/template and using on each project (with CRA, Yeoman, VsCode ...) but if you need to add a feature on all your project you have to change your template and all your existing projects.

🌚 Life is too short to browse without dark mode