How to write a custom selector in React
Recreating useSelector for an app that doesn't use Redux.
Tags: coding, react, games, architecture