777
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
|
Before Width: | Height: | Size: 117 KiB After Width: | Height: | Size: 117 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
@@ -1,6 +1,6 @@
|
||||
import {setUsername} from '../store/action'
|
||||
import {useDispatch,useSelector} from 'react-redux'
|
||||
function Page1(props){
|
||||
function Page1(){
|
||||
const dispatch=useDispatch()
|
||||
const username=useSelector(state=>state.username)
|
||||
const load=()=>{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {setUsername} from '../store/action'
|
||||
import {useDispatch,useSelector} from 'react-redux'
|
||||
function Page2(props){
|
||||
function Page2(){
|
||||
const username=useSelector(state=>(state.username))
|
||||
const dispatch=useDispatch()
|
||||
const load=()=>{
|
||||
|
||||