Answers for "movies list"

-2

movies list

// Movies.js

import React from 'react';

function Movies({ movies }) {
  return (
    <ul>
      {movies.map((m, i) =>
        <li key={i}>{m.year} - {m.title}.({m.genre}) - {m.rating}</li>
      )}
    </ul>
  );
}

export default Movies;
Posted by: Guest on May-05-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language