@neopark/react
v1.0.3
Published
react hooks and Components
Downloads
4
Readme
@neopark/react
packages monorepo common react hooks and components
Install
npm install @neopark/react -S
Use components
// use components
import { Button } from '@neopark/react/components'
function Page() {
return (
<div>
<Button title="neopark"></Button>
</div>
)
}
Use hooks
import { useDidUpdateEffect } from '@neopark/react/hooks'
useDidUpdateEffect(() => {
console.log('to do')
}, [])
Use Brower
<script src="xxxx.react.16.9.0.js"></script>
<script src="xxxx.react-dom.16.9.0.js"></script>
<script src="xxxx.neopark-react.js"></script>
<script>
const { useDidUpdateEffect } = window['neopark-react']
// to do
</script>