I have React app, and server side app. I created user session at the server side, and I want to get the value of it on React. How can I do it?
const [user,setUser] = useState(null)
I want that the initial value will be the session and not null
when you load your app, send an api call to the server and the server will resturn the session id or whatever res.send(sessionID)