Description
The cookies repository holds four JavaScript packages for reading and writing browser cookies in different environments. react-cookie provides universal cookies for React applications. universal-cookie is the core package for JavaScript in any environment. universal-cookie-express and universal-cookie-koa hook cookie reads and writes into Express and Koa servers, which is useful for server-side rendering because the server can see the same cookies as the browser. Together they let one code path work on both the server and the client. The packages are published separately and each has its own README in the repository. The repository itself is public on GitHub. It is aimed at JavaScript and React developers who build apps with server-side rendering and need consistent cookie handling across both sides.…
Highlights
- Cookie helpers for React
- Universal cookie library for JavaScript
- Express integration for server-side rendering
- Koa integration for server-side rendering
- Published as separate packages
Ratings & Reviews
No ratings yet
Be the first to rate Cookies.
People also visit
Cookies FAQ
What do these packages do?
They read and write cookies in React, plain JavaScript, and Express or Koa servers.
Which package should I use?
Use react-cookie in React apps, universal-cookie for plain JavaScript, and the Express or Koa package when your server needs the cookies during rendering.
Why is server support useful?
The README describes the server hooks as a way to get and set cookies during server-side rendering, so the server and browser share the same cookie values.
Is it free?
Yes. The packages are open source and the code is public on GitHub.
What are the best Cookies alternatives?
Popular alternatives to Cookies include Brownies, Sweet Cookie and Tarteaucitron.js. See all Cookies alternatives













