Lazy initializer for useState

If you pass a function as the argument to useState() it'll use that for the initial load and only call that when necessary instead of on each render

TODO: Confirm that code snippet