Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Why my array resets itself when I leave my function

import { useState } from "react";

const yourComponent = () => {
  const [array, setArray] = useState([]);
}
 
PREVIOUS NEXT
Tagged: #Why #array #resets #I #leave #function
ADD COMMENT
Topic
Name
9+7 =