Skip to content

The content in cannot be changed based on changes in hooks data #53

Open
@jun747093801

Description

@jun747093801

The content in cannot be changed based on changes in hooks data,such as
const [numsList, setNumsList] = useState([4]);
useEffect = (() => {
const nums = [1, 2, 3];
setNumsList([...nums]);
},[])

{numsList.map((item: any, index: number) => {
return (

{item}

)
})}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions