Useful components and hooks to integrate releases to your application.
yarn add @vtex/releases-components @vtex/admin-ui
You need to have
react
andreact-dom
in your app.
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 createSystem
import { createSystem } from '@vtex/admin-ui'
const [ThemeProvider] = createSystem({key: 'your-application'})
function RootComponent() {
// 3. Use at the root of your app
return (
<ReleasesProvider account="<your_vtex_account>">
<ThemeProvider>
{/** your app code here */}
</ThemeProvider>
</ReleasesProvider>
)