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
Really good library, but what about something like that
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