0

I am new to react. I want to build a npm reactjs library. I have a reactjs project and I want to general it as a package(library) that can be used by other project. For example, people can use "npm install" command to import my project.

1

1 Answer 1

1
  1. Edit package name in package.json
  2. Publish a package

    npm publish --access public

    ref

Sign up to request clarification or add additional context in comments.

2 Comments

Got it. By the way, do I need to sign up npm account?
@reactnative Right you must have npm account . after register use npm login

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.