fix(guide): restructure curriculum guide articles (#36501)

* fix: restructure certifications guide articles
* fix: added 3 dashes line before prob expl
* fix: added 3 dashes line before hints
* fix: added 3 dashes line before solutions
This commit is contained in:
Randell Dawson
2019-07-24 00:59:27 -07:00
committed by mrugesh
parent c911e77eed
commit 1494a50123
990 changed files with 13202 additions and 8628 deletions

View File

@@ -1,17 +1,21 @@
---
title: Use Array.map() to Dynamically Render Elements
---
## Use Array.map() to Dynamically Render Elements
# Use Array.map() to Dynamically Render Elements
## Hint 1:
---
## Hints
### Hint 1
Define the two states as a JavaScript ```object```.
```javascript
```
{object: state, object: state}
```
## Hint 2:
### Hint 2
You need ```.map()``` to generate a line for every object in the array.
@@ -19,7 +23,11 @@ You need ```.map()``` to generate a line for every object in the array.
this.state.toDoList.map(i => <li>{i}</li>);
```
## Solution:
---
## Solutions
<details><summary>Solution 1 (Click to Show/Hide)</summary>
Once you add the map function, you will notice that it will generate a ```<li>``` for every item you put in the list.
@@ -71,5 +79,5 @@ class MyToDoList extends React.Component {
}
};
```
</details>
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->