skip to Main Content

Reactjs – Why text in react doesn't change dynamically

I have this code here: function Homepage() { const [name,setName] = useState(''); const [followers,setFollower] = useState(''); const [about,setAbout] = useState(''); useEffect(() => { const fetchData = async () => { const data = await loadhomepagescript(); console.log('User Name:', data.user_name); console.log('About:', data.about);…

VIEW QUESTION
Back To Top
Search