📜  更新文本反应本机 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:39.429000             🧑  作者: Mango

代码示例1
import React, { useState } from 'react';
import { View, Text } from 'react-native';

const ReactApp = () => {
    const [myText, setMyText] = useState("My Original Text");
    return (
        
             setMyText("My Changed Text")}>
                    {myText}
            
        
    )
}

export default ReactApp;