Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Example: override App component with extra header on top #142

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions _override/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as React from 'react';
import type { Location } from 'history';

export function App({ children, location }: React.PropsWithChildren<{ location: Location }>) {
return (
<>
<header style={{background: 'yellow', textAlign: 'center', padding: '20px 0', fontSize: '24px'}}>
Header
</header>
{children}
</>
);
}