language beginning

This commit is contained in:
SpikeHD
2022-05-11 23:48:05 -07:00
parent 0f22ca3413
commit 8ba3e7022d
3 changed files with 21 additions and 20 deletions

View File

@@ -7,18 +7,10 @@ interface IProps {
id: string;
}
interface IState {
text: string;
}
export default class BigButton extends React.Component<IProps, IState> {
export default class BigButton extends React.Component<IProps, never> {
constructor(props: IProps) {
super(props)
this.state = {
text: props.text
}
this.handleClick = this.handleClick.bind(this)
}
@@ -29,7 +21,7 @@ export default class BigButton extends React.Component<IProps, IState> {
render() {
return (
<div className="BigButton" onClick={this.handleClick} id={this.props.id}>
<div className="BigButtonText">{this.state.text}</div>
<div className="BigButtonText">{this.props.text}</div>
</div>
)
}