DEV Community

Max
Max

Posted on

How to update the specific value in the current array using the react hooks?

The source code is here.

import React, { useState } from "react";
import ReactDOM from "react-dom";

function App() {
  const [seat_array, setSeat_array] = useState(
    [
      [0, 0], 
      [0, 0, 0, 0], 
      [0, 0, 0, 0],
      [0, 0, 0, 0], 
      [0, 0, 0, 0, 0]      
    ]
  );
  const [current_input, setCurrent_input]

Top comments (0)