npm.io
1.0.4 • Published 5 years ago

react-button-from-jinsunee

Licence
MIT
Version
1.0.4
Deps
4
Size
91 kB
Vulns
0
Weekly
0

react-button-from-jinsunee

react + emotion + rollup ===> npm에 Button 라이브러리 배포해보기

화면 기록 2021-02-25 오후 6 57 46

Install

yarn add react-button-from-jinsunee

or

npm install react-button-from-jinsunee

Props

props type
text string
onClick () => void

Example

import './App.css';

import {Button} from 'react-button-from-jinsunee'

function App() {
  return (
    <div className="App">
      <div className="button">
        <Button text="Hi Febase :)" onClick={() => alert('버튼입니다')} />
      </div>
    </div>
  );
}

export default App;