Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @vuga/react-demo with all npm packages installed. Try it out:

require("react/package.json"); // react is a peer dependency. require("react-dom/package.json"); // react-dom is a peer dependency. var reactDemo = require("@vuga/react-demo")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@vuga/react-demo v0.0.4

Boilerplate to quickstart React component development

React NPM Package Boilerplate

Boilerplate code for publishing a React NPM package.

  • Bundled with Webpack
  • Develop with Hot Module Replacement (HMR)
  • Includes linting with ESLint
  • Testing with Jest.

Usage

  1. Install modules - yarn

  2. Start example and start coding - yarn start

  3. Run tests - yarn test

  4. Bundle with - yarn build

  5. To test if it works correctly in another project you can use npm npm install -S ../react-npm-component-boilerplate Note the relative path

E.g. this folder structure

    ./workspace/
        MyProject
        react-npm-boilerplate

Extra

Adjust your .eslintrc config file to your own preference.

NPM equivalent

yarnnpm
yarnnpm install
yarn testnpm run test
yarn buildnpm run build

License

MIT © Dinesh Pandiyan

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free