question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

#Toast component => React does not recognize the `isBottom` prop on a DOM element.

See original GitHub issue

Problem:

The following warning message is logged into the console each time a new Toast component instance is created:

Warning:` React does not recognize the `isBottom` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `isbottom` instead. If you accidentally passed it from a parent component, remove it from the DOM element.

    in div (created by SystemComponent)
    in SystemComponent (created by Styled(Styled(SystemComponent)))
    in Styled(Styled(SystemComponent)) (created by Message)
    in ThemeProvider (created by Message)
    in div (created by Alert)
    in Component (created by Alert)
    in Alert (created by Message)
    in div (created by ForwardRef)
    in ForwardRef (created by Message)
    in div (created by ForwardRef)
    in ForwardRef (created by Message)
    in Message (created by ToastManager)
    in span (created by ToastManager)
    in ToastManager

Solution: Filtering props passed to the component with the #shouldForwardProp() method is probably expected.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
theo-mesnilcommented, Jul 10, 2020

Ok, we will release very soon the new version of welcome ui (2.0) who fix this issue, you can install the alpha now (is stable), v2.0.0-alpha.28 or less depends of component.

Check the changelog here https://github.com/WTTJ/welcome-ui/releases/tag/v2.0.0-alpha.20

0reactions
theo-mesnilcommented, Jul 17, 2020

Thanks ! Have a nice day !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Warning: React does not recognize the `closeToast` on using ...
Hello,. I'm using custom css classes in my web-app to style the default toastr message. The resultant toastr message looks like this:.
Read more >
React does not recognize the X prop on a DOM element ...
The problem is <div {...props}> in MyWrapper ; that adds the handleMoveAll prop onto the div. What you could do is something like:...
Read more >
Build a Toast Notification Component with React and TypeScript.
Let's define a core set of CSS styles that apply to our Toast. For our system, we will not define all possible positional...
Read more >
Create a Custom Toast Component with React - YouTube
Learn to create a custom toast component with React. Use react hooks like useState and useEffect. Create the react toast component from ...
Read more >
ReactJS | ReactDOM - GeeksforGeeks
This function is used to render a single React Component or several Components wrapped together in a Component or a div element. This...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found