Pearson Content Program Patterns
npm install c-patternsUpdate the package.json file with an incremental increase of the package version on the master branch.
Once the unit tests and linting have been successful, the package will be published to npmjs.com.
> npm install --save c-patterns
> yarn add c-patterns
``js
import { Button, FileUpload } from 'c-patterns';
render() {
return (
also to reduce file size, you can require individual components:
`js
import Button from 'c-patterns/dist/Button';
render() {
return (
)
}
`$3
`js
const Cpatterns = require('c-patterns');
const Button = Cpatterns.Button;
const FileUpload = Cpatterns.FileUpload;render() {
return (
)
}
``