Skip to content

Instantly share code, notes, and snippets.

@phelma
Created February 2, 2023 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phelma/9f2c3cec6ede512bd0f65ca746a601ed to your computer and use it in GitHub Desktop.
Save phelma/9f2c3cec6ede512bd0f65ca746a601ed to your computer and use it in GitHub Desktop.
eevee-high-level

Eevee Core Basic usage (psuedocode)

Embedding an Entry

const entryId = 'abc123'

const evCoreState = await getEvCoreState({
  config,
  entryIds: [entryId]
})

const App = () =>
  <EvCoreProvider state={evCoreState} components={components}>
    ...
    <EvEntry entryId={entryId}>
    ...
  </EvCoreProvider>

Rendering a full Eevee Page

const pagePath = '/some/path'

const evCoreState = await getEvCoreState({
  config, pagePath
})

const App = () =>
  <EvCoreProvider state={evCoreState} components={components}>
    <RootEvEntry pagePath={pagePath}>c
  </EvCoreProvider>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment