DEV Community

Maksim Ivanov
Maksim Ivanov

Posted on

How To Create Custom Effect Hook - Custom Hooks ReactJS Mini Course Part 2

Welcome to ReactJS Custom Hooks Mini Course. In this course we'll learn how to create custom hooks in React, how to test them using React Testing Library and how to publish them as a standalone npm package.

Course playlist: http://bit.ly/35FHALa
Subscribe to the channel: http://bit.ly/2QZ2UY3

Top comments (1)

Collapse
 
fantasticsoul profile image
幻魂 • Edited

try setup(powered by concent) in react:
js ver: codesandbox.io/s/concent-guide-xvcej
ts ver: codesandbox.io/s/concent-guide-ts-...
function component and class component share business logic code easily.