Skip to content

Instantly share code, notes, and snippets.

View Vnthf's full-sized avatar

최민호 Vnthf

  • NHN Entertainment
  • Pankyo
View GitHub Profile
@Vnthf
Vnthf / Lattice-Example-App.tsx
Created November 16, 2021 03:42 — forked from mpossumato-netflix/Lattice-Example-App.tsx
An example approach to leveraging Lattice in a Front End React App
import { Pluggable, PluginHost, usePluggableState } from '@netflix-internal/rgt-components/lib/lattice';
import { getDefaultRoutes } from '../routes';
import { Content, Header, Router } from './components';
import { useFetchPluginConfiguration } from './hooks';
export const App = ({ appName }: { appName: string }) => {
// Fetch plugin host configuration remotely for this application
const config = useFetchPluginConfiguration(appName);
// Allow for routes to be extended by plugins