From 6e7bf03fbb11880842b161431aa3fbdf266b4041 Mon Sep 17 00:00:00 2001 From: Keenan Goldis Date: Mon, 17 Jul 2017 20:04:49 -0500 Subject: [PATCH 1/2] first commit --- src/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index 2fe6d64..760f8b5 100644 --- a/src/App.js +++ b/src/App.js @@ -43,11 +43,11 @@ function App(props) {
This better say "Brodie, Alicia, Margo" :
{/* send in a prop called "names", give it an array ["Titus","Axel","Claire"]*/}
This better say "Titus, Axel, Claire" :
- +dd {/* Use App's props*/} {/* send in a prop called "products", give it the products array from App's props*/}
This better say "Hand Sanitizer":
- {/* send in a prop called "names", give it the names array from App's props*/} + {/* send in a prop called "names", give it the test names array from App's props*/}
This better say "Robin, Lily, Barney":
{/* send in a prop called "magicNumber", give it the magicNumber from App's props*/}
This better say "99":
From 9ec007c28038ed22a1e0c3797588ebf442fe3abf Mon Sep 17 00:00:00 2001 From: Keenan Goldis Date: Wed, 19 Jul 2017 17:21:39 -0500 Subject: [PATCH 2/2] add all props --- src/App.js | 57 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 37 insertions(+), 20 deletions(-) diff --git a/src/App.js b/src/App.js index 760f8b5..cb833aa 100644 --- a/src/App.js +++ b/src/App.js @@ -16,49 +16,66 @@ function App(props) { {/* send in a prop called "message", give it the string "Hello World" */}
This better say "Hello World":
{/* send in a prop called "message", give it the string "Goodbye World" */} -
This better say "Goodbye World":
+
This better say "Goodbye World":
{/* send in a prop called "message", give it the string "Props are awesome" */} -
This better say "Props are awesome":
+
This better say "Props are awesome":
{/* send in a prop called "message", give it the string "I totally get this now" */} -
This better say "I totally get this now":
+
This better say "I totally get this now":
{/* send in a prop called "magicNumber", give it the number 42*/} -
This better say 42:
+
This better say 42:
{/* send in a prop called "magicNumber", give it the number 21*/} -
This better say 21:
+
This better say 21:
{/* send in a prop called "product", give it the variable product*/} -
This better say "ajax":
+
This better say "ajax":
+ {/* send in a prop called "product", give it an object with a name property "pepsi"*/} -
This better say "pepsi":
+
This better say "pepsi":
+ {/* send in a prop called "product", give it an object with a name property "nike"*/} -
This better say "nike":
+
This better say "nike":
{/* send in a prop called "names", give it the variable names*/} -
This better say "Bob, Stand, Todd, Ted" :
+
This better say "Bob, Stand, Todd, Ted" :
+ {/* send in a prop called "names", give it an array ["Brodie","Alicia","Margo"]*/} -
This better say "Brodie, Alicia, Margo" :
+
This better say "Brodie, Alicia, Margo" :
+ {/* send in a prop called "names", give it an array ["Titus","Axel","Claire"]*/} -
This better say "Titus, Axel, Claire" :
-dd +
This better say "Titus, Axel, Claire" :
+ {/* Use App's props*/} {/* send in a prop called "products", give it the products array from App's props*/} -
This better say "Hand Sanitizer":
- {/* send in a prop called "names", give it the test names array from App's props*/} -
This better say "Robin, Lily, Barney":
+
This better say "Hand Sanitizer":
+ + {/* send in a prop called "names", give it the names array from App's props*/} +
This better say "Robin, Lily, Barney":
+ {/* send in a prop called "magicNumber", give it the magicNumber from App's props*/} -
This better say "99":
+
This better say "99":
+ {/* send in a prop called "message", give it the contact.firstName from App's props*/} -
This better say "Luke":
+
This better say "Luke":
+ {/* send in a prop called "message", give it the contact.lastName from App's props*/} -
This better say "Skywalker":
+
This better say "Skywalker":
+ {/* send in a prop called "message", give it the contact.occupation from App's props*/} -
This better say "farmer":
+
This better say "farmer":
+ {/* send in a prop called "message", give it the contact.address from App's props*/} -
This better say "300 MiddleOfNoWhere st Tatooine":
+
This better say "300 MiddleOfNoWhere st Tatooine":
);