Simple Map for an array

PHOTO EMBED

Tue Nov 24 2020 19:16:56 GMT+0000 (Coordinated Universal Time)

Saved by @VictorDronov #javascript #typescript #react.js #next.js

      {arr.map(({ what ever you want to get from map }) => (
        <div>
			code goes here to display through html elements
        </div>
      ))}
content_copyCOPY

use this to map over items in an array that I am using to get elements to the page. Things like titles subtitle nav links/ nav items. Have all the content in one main file or maybe it is being sent from a CMS.