Ah I used React classes out of habit—will update the exporter to output hooks instead. Thanks for the heads up!
(Our reasons for preferring one flavour or another usually depends on some combination of legacy-ness of the project (older -> prefer class components for consistency), complexity (simpler -> prefer functional components), and experience of the team (more junior -> prefer functional). YMMV, etc.)