Getting Started
Get started building with Livepeer UI Kit!
These docs are written for a React or React Native developer building on
@livepeer/react
or @livepeer/react-native
.
Installation
Install Livepeer React using your favorite package manager.
Create a livepeer client
First, create a livepeer Client
instance using
createReactClient
, and pass a provider to it.
Note: If you choose to use Studio as a provider, you will need to configure an
API key for the studioProvider
which is
CORS-protected API key.
Read more about client configuration
Wrap app with LivepeerConfig
Next, wrap the app with the
LivepeerConfig
component, passing the
client
to it.
This is added to _app.js
for Next.js or App.js
with Create React App, so that the
LivepeerConfig
React Context is available across every component.
Enjoy!
Use hooks! Every component inside the LivepeerConfig
is now set up to use the
livepeer hooks.
Want to learn more? Continue reading the documentation for more details.
Was this page helpful?