Home

CV

Blog

Brand

Blog.

November 2021 - 3 years ago

When to use the useEffect and useLayoutEffect hooks

TypeScript

React

Have you ever experienced flickering UI in
React
right after the page renders in your browser? This blog post will show you how to fix this and explain the difference between the
useEffect
and
useLayoutEffect
hooks and when to use them.
Liam Hales

Liam Hales

Senior Software Engineer

November 2021 - 3 years ago

Working around the React context default value with TypeScript

TypeScript

React

When using
React
context you are required to provide a
defaultValue
argument to
createContext
. This can be cumbersome especially with TypeScript. This blog post will show you how to workaround it with a simple hook.
Liam Hales

Liam Hales

Senior Software Engineer

Get in touch

Thank you for stopping by! Please feel free to contact me with any questions you may have, I’ll try my best to get back to you.

2024 - Liam Hales

Designed & Built by Liam Hales