Created
February 21, 2021 13:51
-
-
Save wijiler/febc3f6aae1ceb72f33b95d5b3de6c98 to your computer and use it in GitHub Desktop.
Map
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <> | |
| {tasks.map((tasks) => (<h3>{tasks.text}</h3> | |
| ))} | |
| </> |
Author
{tasks.map(task => <h3>{task.text}</h3>)}
const tasks = [
{
"text": "Doctors Appointment",
"day": "Feb 5th at 2:30pm",
"reminder": true
},
{
"text": "Meeting at School",
"day": "Feb 6th at 1:30pm",
"reminder": true
}
];
const Tasks = () => {
return (
<div>
{ tasks.map(t => <h3>{t.text}</h3> )}
</div>
);
};
export default Tasks;
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
const tasks = [
{
"tasks": [
{
"id": 1,
"text": "Doctors Appointment",
"day": "Feb 5th at 2:30pm",
"reminder": true
},
{
"id": 2,
"text": "Meeting at School",
"day": "Feb 6th at 1:30pm",
"reminder": true
}
]
}
]
const Tasks = () => {
return (
}
export default Tasks