I have a matrix stored in a React useState like this
React useState
const [matrix, setMatrix]=useState([])
At this point the state looks like this:<