How to ensure that page has finished loading on a React site

Use componentDidMount life cycle method in the root component.