not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
663 B

  1. import React, { Component } from 'react';
  2. import logo from './logo.svg';
  3. import './App.css';
  4. import openSocket from 'socket.io-client';
  5. import NicknameInput from './components/NicknameInput';
  6. const socket = openSocket('129.21.91.149:3000');
  7. class App extends Component {
  8. constructor(props){
  9. super(props);
  10. this.state={
  11. progression: '',
  12. roomList: []
  13. }
  14. }
  15. renderRooms(payload) {
  16. this.setState({
  17. roomList: payload,
  18. progression: 'register'
  19. });
  20. console.log(this.state.roomList);
  21. }
  22. componentDidMount(){
  23. }
  24. render() {
  25. return(
  26. <NicknameInput socket = {socket}/>
  27. )
  28. }
  29. }
  30. export default App;