-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Component: Banner Alert #183
base: master
Are you sure you want to change the base?
Conversation
Deploy preview for knit-ui ready! Built with commit 520b89f |
@anshumanv Reminder for review. |
Oops my bad, on it. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add test for this too?
import { BannerAlertWrapper } from "./StyledAlert" | ||
|
||
const BannerAlert = (props: BannerAlertProps) => { | ||
const alertMountNode = document.createElement("div") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of creating a new node in the document, can we instead use the application root node?
This node will otherwise keep lying in the DOM unused, and more will be created everytime we render this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or make it configurable to use a mount node, we can supply mount node form the app
No description provided.