4 changed files with 40 additions and 5 deletions
@ -0,0 +1,7 @@ |
|||||||
|
.Char { |
||||||
|
display: inline-block; |
||||||
|
padding: 16px; |
||||||
|
text-align: center; |
||||||
|
margin: 16px; |
||||||
|
border: 1px solid black; |
||||||
|
} |
||||||
@ -0,0 +1,14 @@ |
|||||||
|
import React from "react"; |
||||||
|
import "./Char.css"; |
||||||
|
|
||||||
|
class Char extends React.Component { |
||||||
|
constructor(props) { |
||||||
|
super(props); |
||||||
|
} |
||||||
|
|
||||||
|
render() { |
||||||
|
return <div className="Char" onClick={this.props.click} >{this.props.string}</div>; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
export default Char; |
||||||
Loading…
Reference in new issue