ES6 classes in React won’t go away anytime soon. But now with React hooks it’s possible to express the flow internal state change. Then UI reactions without using an ES6 class. Most important React Hooks React hooks were born for a reason: sharing logic between components (a nice, standardized, and clean way for encapsulating and sharing logic.) useState: useState is a function exposed by the react package.