make App() class

This commit is contained in:
SpikeHD
2022-05-09 23:30:59 -07:00
parent 635a6a5abb
commit a6d5f3404c
5 changed files with 71 additions and 10 deletions

View File

@@ -0,0 +1,22 @@
import React from 'react'
interface IProps {
children: React.ReactNode[] | React.ReactNode;
className?: string;
heading: string;
}
export default class Menu extends React.Component<IProps, never> {
constructor(props: IProps) {
super(props)
}
render() {
return (
<div className={'Menu ' + this.props.className}>
<div className="MenuHeading">{this.props.heading}</div>
{this.props.children}
</div>
)
}
}