Skip to content

Latest commit

 

History

History
 
 

react

React chat UI example using Layer SDK

This is a simple example on how one would use the Layer Web SDK with the ReactJS framework.

Installation

To install all dependencies and build this project use the following command:

npm install

Running

To run this project use the following command:

npm start

Point your browser to: localhost:8080

Architecture

Understanding this application requires understanding two things:

  1. Redux architecture
  2. layer-react module

The layer-react module provides a LayerProvider for wrapping UI Components; it takes as input a Client, and passes to its children the output of Conversation and Message queries.