setState in componentDidMount, enzyme tests failing
my cDM looks like the following cDM() { //check if browser supports a feature //if yes then setState to denote it is supported this.setState( { supports: true }); } render() { if(this.state.supports) // show button; else // show "not supported...
Sep 5, 2018A