React Js Warnings In Console Unknown Prop
I've got a reactJS application with react-toolbox in console I got this error: Warning: Unknown prop `raised` on tag. Remove this prop from the element. Any Idea how I c
Solution 1:
Solution 2:
React gives you a warning whenever you add attributes to a DOM
-tag that is not in the HTML spec. raised
is not a valid <a />
attribute, so therefore React lets you know that you might have made a mistake. The tag - although it will be applied to the DOM (IIRC) - is not acted upon by any browser. If you need to add custom attributes for other reasons, use data-
-prepended attributes, like data-raised
in your case.
This looks like it needs to be a class or something instead of an attribute on the a
tag - but without seeing your code, it's a bit hard to give a more precise answer.
Post a Comment for "React Js Warnings In Console Unknown Prop"