How to use filter-invalid-dom-props - 2 common examples

To help you get started, we’ve selected a few filter-invalid-dom-props examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github socialtables / react-image-fallback / src / index.js View on Github external
render() {
		return (
			typeof this.state.imageSource === "string"
			?
			<img src="{this.state.imageSource}">
			:
			this.state.imageSource
		);
	}
}

filter-invalid-dom-props

a function to filter props that are not valid dom props when spreading props in an HOC in react

Apache-2.0
Latest version published 1 year ago

Package Health Score

54 / 100
Full package analysis

Popular filter-invalid-dom-props functions