State-based hooks make your components impure out of the box, the same way class components did. Good design with hooks in the future will likely still be to to separate your state-managing container logic from your pure, view components.

You are not required to use hooks today any more than you were required to use classes in the past. You may prefer the withGlobal HOC:

import { withGlobal } from 'reactn';const MyComponent = ({ name }) => {
return <div>My name is {name}.</div>;
const mapStateToProps = global => ({
export default withGlobal(myStateToProps)(MyComponent);

This article is specifically about React Hooks, but ReactN offers many implementations for different use cases.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store