UNPKG

@mapbox/batfish

Version:

The React-powered static-site generator you didn't know you wanted

12 lines (9 loc) 368 B
// import React from 'react'; import { batfishContext } from 'batfish-internal/context'; import { renderAppIntoDom } from './render-app-into-dom'; import { BatfishSpaApp } from './batfish-spa-app'; const matchingRoute = batfishContext.routes[0]; matchingRoute.getPage().then((pageModule) => { renderAppIntoDom(<BatfishSpaApp pageModule={pageModule} />); });