How to create a two-dimensional array in the state and fill it?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
15 views
How to create a two-dimensional array in the state and populate it using a loop?
by | 15 views

1 Answer

0 like 0 dislike
Create: link (RU)

Then use setState to record... for example:

... state = { myData: [] } ... this.setState({ myData: [[1,2,3],[4,5,6],[7,8,9]] })
by

Related questions

0 like 0 dislike
1 answer
asked Jun 13, 2019 by koshak_junior
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
0 comments
35,405 users