Posts by Edilson Pacheco • 1 point
2 posts
-
0
votes1
answer1023
viewsA: React Hooks + Socket.io
I’ve solved that problem, basically the function registerToSocket didn’t necessarily need to be inside a useEffect to trigger the sockets, I was basically using a variable different from the emits…
-
0
votes1
answer1023
viewsQ: React Hooks + Socket.io
I’m using the React Hooks for a simple application, a clone of the Instragam feed. To request each post in the api, I’m using this logic: function Feed() { const [posts, setPost] = useState([]);…