You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you are manually writing renderSquare and an index, in React you can return an array of components to be rendered, so you could use Array.from({length: lengthOfArrayYouWant}), aMapFunction) to create an array and map it immediately with your renderSquare calls.
at
REact-IN/src/components/board.js
Line 55 in 493136c
Array.from({length: lengthOfArrayYouWant}), aMapFunction)
to create an array and map it immediately with your renderSquare calls.or even
Array(myLength).map(myMapFn)
similar toREact-IN/src/components/board.js
Line 10 in 493136c
The text was updated successfully, but these errors were encountered: