/react-modal-demo

Demo for displaying modals in React

Primary LanguageTypeScript

README

This is a demo for handling modals globally within a React app.

Requirements

  • Common (global) modals should be able to be opened from 2 locations
    • From the "service" layer using pure js
    • From a component
  • Should be able to render a modal in a component, in instances where that modal requires a specific context from the component.
  • Modal component should be easily composable (ie. compound component)