React
Installation and setup
Overview
The @chainlit/react-client
package provides a set of React hooks as well as an API client to connect to your Chainlit application from any React application. The package includes hooks for managing chat sessions, messages, data, and interactions.
Installation
To install the package, run the following command in your project directory:
This package uses Recoil to manage its state. This means you will have to wrap your application in a recoil provider: