@airbnb/lunar-app-shell

Application shell powered by Lunar.

Usage no npm install needed!

<script type="module">
  import airbnbLunarAppShell from 'https://cdn.skypack.dev/@airbnb/lunar-app-shell';
</script>

README

Lunar AppShell

A root component that should wrap your entire application.

yarn add @airbnb/lunar-app-shell

Usage

The AppShell is designed to wrap an entire React application, and as such, should primarily be the root component in the application tree (excluding HMR and other wrappers/providers). For example:

import React from 'react';
import ReactDOM from 'react-dom';
import AppShell from '@airbnb/lunar-app-shell';
import App from '../local/components/App';

ReactDOM.render(
  <AppShell name="Lunar">
    <App />
  </AppShell>,
  document.getElementById('root'),
);