Nick Taylor 7/27/2020

Converting a Preact Component to use hooks with Sophia Li

Read Original

This article details a live pair programming session where developer Sophia Li converted a Preact class component in the DEV/Forem codebase into a function component using React hooks. It covers the initial use of useState and a subsequent discussion and implementation of the useReducer hook, with links to the full session recording and the merged GitHub pull request.

Converting a Preact Component to use hooks with Sophia Li

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser