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 lib-create-react-app with all npm packages installed. Try it out:

lib-create-react-app lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("lib-create-react-app/[??]")

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

lib-create-react-app v0.1.4

Share React components from create react app by Harald Rudell

Lib-Create-React-App

Lib Create React App allows React components to be publicly published as npm packages

click for Video presentation, 10 min

© 2018-present Harald Rudell harald.rudell@gmail.com (http://www.haraldrudell.com)

Usage

Publish to npm in 3 commands:

  • yarn add --dev lib-create-react-app
  • yarn preplib
  • yarn pub

Implementation notes:

  • A separate package.json for npm is at publish/package.json
  • Separate LICENSE and README.md in publish/
  • Components to export in src/libindex.js
  • Package content at publish/lib/

Components

Example Project

link: Hire Harald Rudell

link: Sponsor Harald Rudell

Lib Create React App creates shareable libraries from projects bootstrapped with Create React App.

© 2018-present Harald Rudell harald.rudell@gmail.com (http://www.haraldrudell.com)

Metadata

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