mancala/src/routes/GamePage.tsx

18 lines
471 B
TypeScript
Raw Normal View History

import * as React from 'react';
import { FunctionComponent } from 'react';
import { useParams } from 'react-router';
import { Context } from '../context/context';
const GamePage: FunctionComponent<{ context: Context }> = ({ context }) => {
let params = useParams<{gameId : string}>();
return (
<div>
Game Route {params.gameId}
<style jsx>{`
`}</style>
</div>
);
}
export default GamePage;