party-template/src/PartyPage.tsx
2022-10-10 20:13:00 +02:00

27 lines
808 B
TypeScript

import React, { useContext } from 'react';
import logo from './logo.svg';
import './PartyPage.css';
import { PartyContext } from './PartyContext';
export const PartyPage: React.FC = () => {
const partyContext = useContext(PartyContext);
return <div className="App" >
<header className="App-header" >
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code> src/PartyPage.tsx </code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
<span>Hello {partyContext.self.name}</span>
</header>
</div>
};