import Head from 'next/head' import Form from 'react-bootstrap/Form'; import Table from 'react-bootstrap/Table' import { useState } from 'react'; import { Container, Row, Col } from 'react-bootstrap'; export default function Home() { const [instructionStatus, setInstructionStatus] = useState([]); const geraTabelaParaInserirInstrucoes = (nInst) => { let tabela = []; for (let i = 0; i < nInst; i++) { let d = "D" + i; let r = "R" + i; let s = "S" + i; let t = "T" + i; tabela.push( ); } return tabela; }; const handleGenerateTable = (event) => { const nInst = event.target.value; setInstructionStatus(geraTabelaParaInserirInstrucoes(nInst)); }; return ( <> Tomasulo

Lista de Instruções

{instructionStatus}
Instrução Operando 3 Operando 2 Operando 1
) }