Example 1.1

PHOTO EMBED

Wed May 15 2024 10:01:10 GMT+0000 (Coordinated Universal Time)

Saved by @beyza

import React from 'react';

const ListComponent = () => {
  const items = ['Item 1', 'Item 2', 'Item 3', 'Item 4'];

  return (
    <div>
      <h2>List Component</h2>
      <ul>
        {items.map((item, index) => (
          <li key={index}>{item}</li>
        ))}
      </ul>
    </div>
  );
};

export default ListComponent;
content_copyCOPY

https://chatgpt.com/c/3e4f5a44-577a-4ca4-970d-80b8a2a76efa