0.0.4 • Published 3 years ago
react-component-library-itsector-workshop v0.0.4
Package built for a workshop presentation for ITSector
Made by Alexandre Gonçalves and Humberto Vieira Check the Repository !
Installation
npm i react-component-library-itsector-workshop
Usage
import { useState } from 'react';
import { ButtonComponent } from 'react-component-library-itsector-workshop';
function App() {
const [count, setCount] = useState(0);
return (
<>
<ButtonComponent
type="primary"
onClick={() => setCount((count) => count + 1)}
label={`count is ${count}`}
/>
</>
);
}
export default App;