0 points

Simple Map for an array


dashboard

Tue Nov 24 2020 19:16:56 GMT+0000 (UTC)

Posted 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_copy Copy

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.