React contexts enable information sharing between components. However, they aren't always the best fit for a project. See why and how to properly use them.
The problem with the CGI way is that the state of your application is bifurcated between client and server and exists in different places at different times