If you want to write it to the DOM, pass a string instead: in="true" ...
See original GitHub issue
I got an error while rendering
StackGrid Component’s Opacity:0 style attribute does not change 😢
I found a strange prop in the div element that render in the Grid Component.

and it comes GridItem Component

It looks like a react transition error 😢
Appreciate any help! 🙏
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Warning: Received true for a non boolean attribute jsx
If you want to write it to the DOM, pass a string instead: selectable="false" or selectable={value.toString()}. If you used to conditionally omit it...
Read more >React DOM element's attribute should not have a value of the ...
This rule applies when React DOM element's attribute value is specified ... Boolean attribute with 'true' or 'false' string value: React ...
Read more >ReactDOM – React
... the React model if you need to. import * as ReactDOM from 'react-dom';. If you use ES5 with npm, you can write:...
Read more >How to fix the 'Received "true" for a non-boolean attribute' error
How to fix Received 'true' for a non-boolean attribute error when using styled-components or emotion.
Read more >Object.prototype.toString() - JavaScript - MDN Web Docs
The toString() method returns a string representing the object. ... Function.prototype.apply() on it, passing the object you want to inspect ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am getting the same warning and this the code.
Thank you all! I’m learning ReactJS and ended here searching for a solution.
I changed from:
color={withDraw}to:color={withDraw ? 1 : 0}and it works!