diff --git a/2-jsx-components/08-travel-gallery/App.js b/2-jsx-components/08-travel-gallery/App.js index a03fa83..d424299 100644 --- a/2-jsx-components/08-travel-gallery/App.js +++ b/2-jsx-components/08-travel-gallery/App.js @@ -17,4 +17,20 @@ export default function App() { {imageGallery} ); -} \ No newline at end of file +} + +// ALTERNATIVE APPROACH +// Alternative approach using the ".map" functionality of list in Javascript +export default function App() { + const barcelonaImage = Barcelona; + const tokyoImage = Tokyo; + const ohioImage = Ohio; + let list =[barcelonaImage, tokyoImage, ohioImage]; + return ; +}