Warning: Invalid DOM property

I need for understand this error :
warning: Invalid DOM property class. Did you mean className?
Warning: Invalid DOM property maxlength. Did you mean maxLength?

This means you attempted to add an attribute named class to an element. You are not allowed to do that. You should instead used className.

This means you tried to access an element property named maxlength when there is no such property. There is a property named maxLength you can reference instead.

Google “invalid dom property class did you mean classname”

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.