React Hooks: Managing Web Sockets with useEffect and useState
Rundown of React Hooks and applying them to a real-time chat room simulation
8 min readNov 5, 2018
Hooks in React have triggered a transition in how React developers structure their projects; a catalyst for adopting functions in place of classes. This article will visit 2 hooks, useState
and useEffect
, to simulate a real-time chat…