@teachstone/react-components v0.1.17
react-components
Teachstone reusable react components
Installation
Run the following command:
// with npm
npm install @teachstone/react-components
// with yarn
yarn add @teachstone/react-components
Available Scripts
In the project directory, you can run:
yarn start
Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.
yarn test
Launches the test runner in the interactive watch mode. See the section about running tests for more information.
yarn build
Transpiles the code inside of the components
folder for production to the dist
folder.
Testing without publishing to NPM
Note: Using node v10.16.0 is recommended when developing components for this library.
1. yarn start
Start by developing and testing your components locally.
2. yarn build
Once your code is ready, you'll need to build and transpile your code for distribution.
3. yarn pack
This command will create a .tgz
file containing a bundled version of the package that you can then use to install it locally. You can move this file anywhere in your computer.
4. yarn add /path/to/file/teachstone-react-components-vx.x.x.tgz
Install the file generated in the previous step and use it as a normal npm package.