component and passing argument as the attributes
IN INDEX.JS import React from "react" import ReactDom from "react-dom" import CARD from "./Cards" import SDATA from "./Sdata" ReactDom.render( <> <h1>LIST OF TOP 5 ORIGINAL NETFLIX SERIES</h1> <CARD Sname={SDATA[0].Sname} image={SDATA[0].image} title={SDATA[0].title} links={SDATA[0].links} /> < CARD Sname = { SDATA [ 1 ]. Sname } image = { SDATA [ 1 ]. image } title = { SDATA [ 1 ]. title } ...