🎈 perf(存储):
This commit is contained in:
parent
9eb68f8d91
commit
87649b4f27
42585
package-lock.json
generated
42585
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -58,6 +58,7 @@
|
|||||||
"@babel/core": "^7.8.0",
|
"@babel/core": "^7.8.0",
|
||||||
"@pmmmwh/react-refresh-webpack-plugin": "0.5.4",
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.4",
|
||||||
"@tarojs/plugin-mini-ci": "^3.5.1",
|
"@tarojs/plugin-mini-ci": "^3.5.1",
|
||||||
|
"@tarojs/plugin-platform-weapp": "^3.5.4",
|
||||||
"@tarojs/plugin-react-devtools": "^3.4.13",
|
"@tarojs/plugin-react-devtools": "^3.4.13",
|
||||||
"@tarojs/webpack5-runner": "^3.5.4",
|
"@tarojs/webpack5-runner": "^3.5.4",
|
||||||
"@types/qs": "^6.9.7",
|
"@types/qs": "^6.9.7",
|
||||||
|
@ -1,10 +1,30 @@
|
|||||||
import { isEmptyObject } from '@/common/common'
|
import { isEmptyObject } from '@/common/common'
|
||||||
import { View } from '@tarojs/components'
|
import { Button, View } from '@tarojs/components'
|
||||||
|
import { FC, memo, useState } from 'react'
|
||||||
import styles from './index.module.scss'
|
import styles from './index.module.scss'
|
||||||
|
const SonComp: FC = memo(() => {
|
||||||
|
return <View className=''>我改变了吗{new Date().getTime()}</View>
|
||||||
|
})
|
||||||
|
|
||||||
// 我的
|
// 我的
|
||||||
const User = () => {
|
const User = () => {
|
||||||
const obj = {}
|
const obj = {}
|
||||||
console.log(isEmptyObject(obj))
|
console.log(isEmptyObject(obj))
|
||||||
return <View className={styles['main']}>sdfasdfasdf</View>
|
const [count, setCount] = useState(0)
|
||||||
|
const handleCount = () => {
|
||||||
|
setCount((prev) => {
|
||||||
|
return prev + 1
|
||||||
|
})
|
||||||
|
}
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<View className={styles['main']}>
|
||||||
|
sdfasdfasdf {count}
|
||||||
|
<Button onClick={handleCount}>+1</Button>
|
||||||
|
<SonComp />
|
||||||
|
</View>
|
||||||
|
</>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default User
|
export default User
|
||||||
|
Loading…
x
Reference in New Issue
Block a user