hello i want to map this but somehow i am not able to do that , in current code its saying me that it is a function..
id.js
function detail({ ninja }) { const [data, setdata] = useState([ninja]); console.log(data); return ( <div> <> {data.map((inner) => ( <> {inner.data.map((books) => ( <> <div> <h1 id='home_heading'>{books.name}</h1> </div> </> ))} </> ))} </> </div> );
}
export default detail;
please provide me a solution to this problem or an alternative method
Anonymous Asked question May 14, 2021
Recent Comments