1.2.0 • Published 2 years ago

yudi-components v1.2.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

This is example how to publish components into NPM package

Getting Started

Signup on npm website

https://www.npmjs.com/signup

How to create new components (camel case naming)

  • Create new directory "ComponentName" inside directory "components"
  • Create new file "index.js" inside your created component directory "ComponentName"
  • Create file style "component-name.css" inside your created component directory "ComponentName"
  • Add your created components to "components/index.js"
import Button from './ComponentName1';
import Button from './ComponentName2';

export{
  ComponentName1,
  ComponentName2
}

Publish into NPM

  • npm login
  • npm version (ex. 1.0.0)
  • npm run build:npm
  • npm publish

How to use

  • Create your new react project
  • npm install yudi-components
  • Then
import {Button} from 'yudi-components/dist'
 
function App() {
  return (
    <div>
      <Button action={() => alert('lala')} text={"Click Me"} />
    </div>
  );
}
1.2.0

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.0.6

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

0.1.0

2 years ago