快速开始
pnpm i @aiszlab/relax
hooks or utils for building your react project quickly
如何使用
import { useEvent } from '@aiszlab/relax'
const App = () => {
const click = useEvent(() => {
// do something
})
return <Button onClick={click}>使用 relax</Button>
}
export default App