Skip to content

Instantly share code, notes, and snippets.

View ZeldOcarina's full-sized avatar
👩‍💻
Coding!

Mattia Rasulo ZeldOcarina

👩‍💻
Coding!
  • Monarchy Media LLC
View GitHub Profile
@meddokss
meddokss / Styled-components-error.md
Last active March 20, 2024 08:34
[Styled-components Error] Warning: React does not recognize the prop on a DOM element. #STYLED
Warning: React does not recognize the `isEditing` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `isediting` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
    in button (created by ForwardRef(Tab))
    in ForwardRef(Tab) (created by Context.Consumer)
    in StyledComponent (created by Styled(Component))
    in Styled(Component) (at App.js:14)

In the TextBox component you're passing all the props from the parent via {...props}. Considering that TextField itself doesn't have 'isEditing' property, I assume it passes it down to the underlying input DOM element, which doesn't recognise that prop.