22 lines
488 B
JavaScript
22 lines
488 B
JavaScript
|
|
import React from 'react';
|
||
|
|
import GridControl from './grid/grid-control';
|
||
|
|
|
||
|
|
class MineSeeker extends React.Component {
|
||
|
|
// /** after rendering */
|
||
|
|
// componentDidMount() {
|
||
|
|
// this.connection = new WebSocket('ws://127.0.0.1:8080');
|
||
|
|
//
|
||
|
|
// this.connection.onmessage = evt => {
|
||
|
|
// // console.log(evt.data);
|
||
|
|
// };
|
||
|
|
// }
|
||
|
|
|
||
|
|
render() {
|
||
|
|
return (
|
||
|
|
<GridControl ref="gridControl"/>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export default MineSeeker;
|