a typescript render-prop click outside component for react
npm install click-outside-render-prop``bash
git clone https://github.com/tclain/click-outside-render-prop
cd click-outside-render-prop
$3
Basically the same as tj/click-outside, but with a render prop flavour and written in typescript !
$3
`javascript
import ClickOutside from 'click-outside-render-prop'
export const App = () => {
return
{({ref}) => (
)}
}
`
$3
-
npm t: Run test suite
- npm start: Run npm run build in watch mode
- npm run test:watch: Run test suite in interactive watch mode
- npm run test:prod: Run linting and generate coverage
- npm run build: Generate bundles and typings, create docs
- npm run lint: Lints code
- npm run commit`: Commit using conventional commit style (husky will tell you to use it if you haven't :wink:)