MCPcopy Create free account
hub / github.com/reactjs/react-modal / shouldOpenModal

Function shouldOpenModal

examples/basic/react-router/index.js:12–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10const Content = label => () => <p>{`Content ${label}`}</p>;
11
12const shouldOpenModal = locationPath => /\bmodal\b/.test(locationPath);
13
14const ReactRouterModal = props => (
15 <Modal

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…