Or, yet more evidence that you should use feature detection instead of browser/user agent sniffing.
- Unprefixed CSS
transform
. Should require-ms-transform
but doesn’t require it.
import React, { Component } from 'react'; | |
export default function withPropsChecker(WrappedComponent) { | |
return class PropsChecker extends Component { | |
componentWillReceiveProps(nextProps) { | |
Object.keys(nextProps) | |
.filter(key => { | |
return nextProps[key] !== this.props[key]; | |
}) | |
.map(key => { |