What is the proper way of using React Hooks in Gutenberg on frontend?

What is the proper way of using React Hooks in Gutenberg on frontend?