OneAlign / web /tests /render-entry.tsx
loveaa's picture
Deploy Home Pulse: grounded setup, isolated workspaces and shared HF visual inference
90d354b verified
Raw History Blame Contribute Delete
255 Bytes
import { renderToStaticMarkup } from 'react-dom/server'
import { MemoryRouter } from 'react-router'
import App from '../src/App'
export const renderRoute=(route:string)=>renderToStaticMarkup(<MemoryRouter initialEntries={[route]}><App/></MemoryRouter>)