Tag: jsx
-
Unnecessary reload needed to load new user data on login with apollo and graphql
0 so I had this problem for a while now and its driving me crazy. There was one answer on here however it did not help at all. So I am here to post my code to see if someone would be able to discern my stupidity. Login component: import React, { useState, useCallback, useEffect…
-
Is an incremental state update a feasible approach?
0 I wrote a framework called React Server, that mimics React on the serverside. It features a few familiar concepts from React, like components, states, hooks, effects but on the serverside. A serverside component looks the following export const HelloWorldExample2 = () => { // The useState hook looks familiar? const [count, setState] = useState(0,…