import React, { Component, useState } from 'react'
import { View, Text, Button } from '@tarojs/components'
import { useSelector, useDispatch } from 'react-redux'
import './lobby.scss'
import { increment } from '@/store/index'
import { fetchOpMap } from '@/api/api'
import Title from '@/components/title'
// class Lobby extends Component {
// constructor(props) {
// super(props)
// console.log('lobby', props)
// }
// render() {
// return (
//
// Lobby!!
//
//
// )
// }
// }
function Lobby() {
const count = useSelector((state) => state.counter.value)
const dispatch = useDispatch()
fetchOpMap()
.then(res => { console.log(res) })
.catch(err => console.log(err))
return (
Lobby!! {count}
)
}
export default Lobby