This is a simple example on how one would use the Layer Web SDK and Layer UI for Web with the ReactJS framework.
To install all dependencies and build this project use the following command:
npm install
To run this project use the following command:
npm start
Point your browser to: localhost:8080
Understanding this application requires understanding two things:
- Redux architecture
- 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.