diff --git a/reactjs.md b/reactjs.md index aa3887d..7ff72a5 100644 --- a/reactjs.md +++ b/reactjs.md @@ -169,3 +169,21 @@ When you click a submit button, usually page gets refreshed. You can prevent thi ```js event.preventDefault(); ``` + +# Lists and Keys + +This is the example of how we can use lists and keys in react. +We loop through the numbers array using the JavaScript map() function. We return a `