Let’s say you are using the simple stateless component below:

As you can see, we are using the {...props} special attribute to pass all props to the second div. Also, we are supporting an own attribute enableReading. This own attribute will be inserted into the div as well. So, you’ll receive the following warning message in your browser console:

Fortunately, we can fix it by using:

In other words, never pass the “props” variable directly when you think that may be present some custom attributes.