In React, cookies can be stored and managed using the `js-cookie` package. This package provides a simple API for setting, getting, and removing cookies in the browser.

To use `js-cookie`, you first need to install it using npm or yarn:

```
npm install js-cookie
```

Once installed, you can import it into your React component and use it to set, get, and remove cookies.

Here's an example of how to set a cookie in React:

```javascript
import Cookies from 'js-cookie';

function setCookie() {
Cookies.set('name', 'value', { expires: 7 });
}
```

In this example, the `set` method is used to set a cookie named "name" with a value of "value". The `expires` option is set to 7 days, which means the cookie will expire in 7 days.

To get a cookie, you can use the `get` method:

```javascript
import Cookies from 'js-cookie';

function getCookie() {
const value = Cookies.get('name');
console.log(value);
}
```

In this example, the `get` method is used to get the value of the "name" cookie and log it to the console.

To remove a cookie, you can use the `remove` method:

```javascript
import Cookies from 'js-cookie';

function removeCookie() {
Cookies.remove('name');
}
```

In this example, the `remove` method is used to remove the "name" cookie.

Overall, `js-cookie` provides a simple and easy-to-use API for managing cookies in React.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence