Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ESLint was triggering warnings that had to be resolved (annoyingly in a single commit!). Firstly, regarding usage of setState in componentDidMount. This is often true. However React docs themselves say this is valid when doing DOM interaction such as measuring widths…etc. > …when you need to measure a DOM node before rendering something that depends on its size or position See https://reactjs.org/docs/react-component.html#componentdidmount Secondly, string refs were being used. Modified to use createRef() pattern.
- Loading branch information