1.1.4 • Published 5 years ago

c-patterns v1.1.4

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Patterns npm version NPM BUILD

The Content Program Patterns library for React and Javascript components and resusable code

Contributing and releasing

Releasing

Update 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.

Install

npm

npm install --save c-patterns

yarn

yarn add c-patterns

Usage

ES6

import { Button, FileUpload } from 'c-patterns';

render() {
  return (
    <div>
      <Button />
      <FileUpload />
    <div>
  )
}

also to reduce file size, you can require individual components:

import Button from 'c-patterns/dist/Button';
render() {		
  return (
			<div>
				<Button />
			<div>
		)
	}

ES5

const Cpatterns = require('c-patterns');
const Button = Cpatterns.Button;
const FileUpload = Cpatterns.FileUpload;

render() {
    return (
    <div>
      <Button />
      <FileUpload />
    <div>)
}
1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.0.38

7 years ago

0.0.37

7 years ago

0.0.36

7 years ago

0.0.35

7 years ago

0.0.34

7 years ago

0.0.33

7 years ago

0.0.32

7 years ago

0.0.31

7 years ago

0.0.30

7 years ago

0.0.29

7 years ago

0.0.28

7 years ago

0.0.27

7 years ago

0.0.26

7 years ago

0.0.25

7 years ago

0.0.24

7 years ago

0.0.23

7 years ago

0.0.22

7 years ago

0.0.21

7 years ago

0.0.20

7 years ago

0.0.19

7 years ago

0.0.18

7 years ago

0.0.17

7 years ago

0.0.16

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago