Basic example for using OpenLayers 6 with React and functional components.
You can visit a demo at https://dietrichmax.github.io/openlayers-react-functional-component/.
To run this example: