Skip to content

LiveLike/react-graphql-examples

Repository files navigation

GraphQL React Examples

About

This is a sample app for LiveLike that makes use of LiveLike's GraphQL API.

Note: For UI examples that don't use GraphQL, see our Web SDK HTML Demo

Quickstart

Prerequisites

The minimum requirement is to install npm and node.

Running the application

Install the dependencies:

npm i

Run the dev server

npm run dev

And the application will be running at http://localhost:5173

Under the hood

Polls

  1. Poll Component
  2. Poll Styles
  3. GraphQL Requests
  4. GraphQL Types

The Poll Component renders one Text Poll and one Image Poll.

Important

To vote the on the poll, you must set the VITE_LIVELIKE_ACCESS_TOKEN environment variable to your LiveLike user profile access_token. The .env.example file is provided as an example. Information about LiveLike user profiles and access_token can be found User Profiles docs page.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published