skip to Main Content

Reactjs – includes is not a function

I'm trying to create a "permissions of a role" screen. Here is the sample code : import React, { useEffect, useState } from "react"; import { Form, Checkbox, Collapse, Row } from "antd"; function RolePermissions() { const [permissions, setUsersPermissions] =…

VIEW QUESTION

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