Skip to content

Show alert in react dom tree #184

@borm

Description

@borm

Really good library, but what about something like that

const App = () => {
  const reactDomAlert = useAlert();

  return (
    <div id="app">
      <AlertContainer />
      ... some components with logic here
    </div>
  )
}

so, the main idea to not attach all alerts to document body element, sometimes we need to show alert as static/relative position inside react

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions