Prindol

DESIGN, HTML5, CSS3, DOM, Jquery, JSON, Actionscript2/3, Linux, IIS

You are not logged in.

#1 2022-03-07 21:23:32

skydown
Administrator
Registered: 2011-07-25
Posts: 330

[REACT] .map()

const numbers = [1, 2, 3, 4, 5];

return (
    {numbers.map((data: string, index: number) => (
        <div key={index}>
            {data}
        </div>
    ))}
)

Offline

Board footer

Powered by FluxBB