Answers for "render object id in an array reactjs from database"

0

render object id in an array reactjs from database

render() {
    const data =[{"name":"test1"},{"name":"test2"}];
    return (
      <div>
      {data.map(function(d, idx){
         return (<li key={idx}>{d.name}</li>)
       })}
      </div>
    );
  }
Posted by: Guest on April-07-2020

Code answers related to "render object id in an array reactjs from database"

Code answers related to "Javascript"

Browse Popular Code Answers by Language