DEV Community

Max
Max

Posted on

1 1

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)

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay