const express = require('express'); const app = express();

import React from 'react';

export default ImageGallery; And for a backend, using Node.js and Express as an example:

function ImageGallery(props) { return ( <div> {props.images.map((image, index) => ( <img key={index} src={image.src} alt={image.alt} /> ))} </div> ); }