react-modal-hook
react-modal-hook copied to clipboard
Syntactic sugar for handling modals using React Hooks
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.0.12 to 4.7.7. Changelog Sourced from handlebars's changelog. v4.7.7 - February 15th, 2021 fix weird error in integration tests - eb860c0 fix: check prototype property access in...
``` const [showModal] = useModal(() => { const [count, setCount] = useState(0); return ( The count is {count} setCount(count + 1)}>Increment ); }); return Show modal; ``` when I am...
Bumps [y18n](https://github.com/yargs/y18n) from 3.2.1 to 3.2.2. Commits See full diff in compare view Maintainer changes This version was pushed to npm by oss-bot, a new releaser for y18n since your...
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.4.1 to 6.5.4. Commits 43ac7f2 6.5.4 f4bc72b package: bump deps 441b742 ec: validate that a point before deriving keys e71b2d9 lib: relint using eslint 8421a01 build(deps): bump...
Hi @renchap I'm really curious to understand why the` useModal` hook needs to use react context. Basically the way I was handling modals was using this simpler hook. ```js export...
I am not sure if this is an issue per-say but am attempting to use this library to render a modal and have run into a situation where I am...
Related to https://github.com/mpontus/react-modal-hook/issues/30 I need to pass variable to `useModal` constructor from invocation of `showModal`, which has access to the parent context.
This is never what a user expects/wants to happen. I think this might be because you're using `onClick` even handler on the overlay. It might be better to use `onMouseDown`...
Bumps [http-proxy](https://github.com/http-party/node-http-proxy) from 1.17.0 to 1.18.1. Changelog Sourced from http-proxy's changelog. v1.18.1 - 2020-05-17 Merged Skip sending the proxyReq event when the expect header is present [#1447](https://github.com/http-party/node-http-proxy/issues/1447) Remove node6 support,...
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4. Changelog Sourced from websocket-extensions's changelog. 0.1.4 / 2020-06-02 Remove a ReDoS vulnerability in the header parser (CVE-2020-7662, reported by Robert McLaughlin) Change license from...