Files
excel-download/react_webgame/3. 숫자야구/Try-class.jsx
2021-03-05 22:51:33 +09:00

27 lines
554 B
JavaScript

import React, { PureComponent } from 'react';
class Try extends PureComponent {
constructor(props) {
super(props)
const filtered = this.props.filtered(() => {
})
this.state = {
result: filtered,
try: this.props.try,
}
}
render() {
const { tryInfo } = this.props;
return (
<li>
<div>{tryInfo.try}</div>
<div>{tryInfo.result}</div>
</li>
)
}
}
export default Try;