Skip to content

Instantly share code, notes, and snippets.

@helloimalemur
Created January 27, 2024 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save helloimalemur/9a56c4f95dd31590a9dddf1898c84bdf to your computer and use it in GitHub Desktop.
Save helloimalemur/9a56c4f95dd31590a9dddf1898c84bdf to your computer and use it in GitHub Desktop.
React Iter Array

You can just use map within the components render method.

render () {
   return (
       <div>
           {stations.map(station => <div key={station}> {station} </div>)} 
       </div>
   );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment