May 13 2020 ()
3 min read
Getting related posts using Gatsby can be a little tricky at build time. Doing it in the browser might get slow. Luckily we can create a schema customisation to generate automatic related posts at build time!
May 12 2021 ()
2 min read
Two of the hardest to learn, and least understood concepts in React are context, and hooks. Learn a convenient method to share context with components via custom hook.
Apr 16 2020 ()
5 min read
Learn how to convert a React class component over to a React function component, with these quick steps. If you've got an older codebase, or you'd like to try the power of React hooks in your code, function components can be a great way to do it. Plus function components are less boilerplate and nicer to read!
Mar 26 2020 ()
5 min read
You've heard of React's hooks, but did you know you can roll your own? Find out how to make custom React hooks.
Apr 4 2020 ()
7 min read
Fetching remote data in React components can get a little messy. Learn how to use custom hooks to make data fetching a little bit easier.
Mar 23 2020 ()
6 min read
Listening to DOM events in React can quickly get messy. Luckily, custom React hooks can easily 'Reactify' our DOM events.