s.XXI Investor
KPCKevin Powell - Community
•Created by s.XXI Investor on 10/22/2023 in #front-end
Create an Array given one number
I code a js script with for but now I need to move it to react and I need to create an array with the position of the number of state.
Example: NumberState = 3 | I need to create an array like this [1, 2,3] or NumberState = 7 | I need [1,2,3,4,5,6,7]
I need to do a map and render a component with the value
3 replies