用Hooks新特性来写,紧跟前端开发进程, 加薪,加薪,加薪

    import Taro, {  useState } from '@tarojs/taro'
    import { View, Text } from '@tarojs/components'
    import './index.less'
    function Index(){
        const [userName ,setUserName] = useState('Hello World!!!!')
        return ( 
            <View>
                <Text>{userName}</Text>
            </View>
        )
    }

    export default Index