Robin Docs
  • Overview
  • Fundamentals
  • Messaging with Robin
    • Guides
      • How does Robin Messaging work?
      • Setting up your Robin account
      • Integrating Robin in your Nuxt.js app
      • Adding Users to your Robin App
      • What is the Robin User Token (RUT)?
      • The What and Why: Robin Keys
      • Customizing Robin for your Brand
    • SDKs for UI Kit
      • Robin with Vue
      • Robin with React
      • Robin with Flutter
    • Add Messaging with Core SDKs
      • Javascript
      • Go
      • Python
  • API Reference
  • Robin Messaging Events
  • Samples and Resources
Powered by GitBook
On this page
  • Add Messaging to Your React App
  • Prerequisites
  • Install the React SDK
  • Mount Robin and Start Messaging

Was this helpful?

  1. Messaging with Robin
  2. SDKs for UI Kit

Robin with React

Robin React SDK is still in development.

PreviousRobin with VueNextRobin with Flutter

Last updated 2 years ago

Was this helpful?

Add Messaging to Your React App

Add chat functionality to your React app — whether you are building for mobile-first or desktop users, customize Robin UI to match your app’s theme. Take advantage of the Robin API and deploy messaging solutions in very little time.

Do you build frontend apps with Vue? Check out instead.

Prerequisites

The following are required to get your chat app up and running:

  1. API Key - Learn about how to get your API Keys in

  2. Current user’s and Name - Robin User Token is a Unique Identifier of every user in your Robin App.

  3. All users to be included in your chat app.

Install the React SDK

npm install robin-react --save
yarn add robin-react

Mount Robin and Start Messaging

You can set up Robin quickly by importing the RobinChat component in your Javascript entry file and mounting it with its required props.

// App.js 

import { RobinChat } from 'robin-react'

export default function App() {
  return (
    <RobinChat 
      apiKey="YOUR_API_KEY"
      users="YOUR_LIST_OF_USERS"
      userToken="YOUR_ROBIN_USER_TOKEN"
			userName="YOUR_USERNANE" />
  );
}

Want to customize Robin to match your app’s theme? Check out

Customizing Robin for your Brand
Robin with Vue
RUT
Setting up your Robin account