This was using filter-invalid-dom-props to decide what props to pass through to the wrapped img tag. However, that project depends on html-attributes which is under the Open Works License - a worthy license, but not a common one, and so may require legal review for various projects.
This change rather just filters out the properties of the component itself - and passes others through, just as you could when using img directly
This was using
filter-invalid-dom-props
to decide what props to pass through to the wrappedimg
tag. However, that project depends onhtml-attributes
which is under the Open Works License - a worthy license, but not a common one, and so may require legal review for various projects.This change rather just filters out the properties of the component itself - and passes others through, just as you could when using
img
directly