Releases Components
Useful components and hooks to integrate releases to your application.
Installation
yarn add @vtex/...
Setup
It's necessary to add the Admin-UI ThemeProvider at the root of your application along with the ReleasesProvider.
import React from 'react'
// 1. Import the ReleasesProvider
import { ReleasesProvider } from '@vtex/...'
// 2. import the ThemeProvider
import { ThemeProvider } from '@vtex/admin-ui'
function RootComponent() {
// 3. Use at the root of your app
return (
<ReleasesProvider account="<your_vtex_account>">
<ThemeProvider>
{/** your app code here */}
</ThemeProvider>
</ReleasesProvider>
)