How to create table with dynamically rows and columns with number in React-JS

let arr=[]
for(let i=2;i<=10;i=i+2){
  arr[i]=[]
 for(let j=1;j<=20;j=j+2){
  arr[i][j]=i*j;
 }
 console.log(`n`);
}
console.table(arr);
https://stackoverflow.com/questions/ask#

**This Code Correct in JavaScript, But No Idea in React-JS

enter code here

How This Table Image Create in React-JS**