1 | import React, { Component } from 'react'; |
Nested ReactDOM.render calls inside a component are no longer guaranteed to be synchronous, see #12227.
Per https://reactjs.org/docs/react-dom.html#render, the return of render should not be relied upon and a top level ref
should be used instead.
https://github.com/facebook/react/issues/12315
1 | const ref = (notices) => { |