From 693255c2ebbf544115a515b2c69d343708b82a22 Mon Sep 17 00:00:00 2001 From: Jose <126101249+JoseGeek78@users.noreply.github.com> Date: Wed, 25 Oct 2023 18:21:00 +0000 Subject: [PATCH] Update --- .learn/resets/01.2-rendering-from-objects/app.jsx | 13 +++++++++++++ exercises/01.2-rendering-from-objects/app.jsx | 9 +++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .learn/resets/01.2-rendering-from-objects/app.jsx diff --git a/.learn/resets/01.2-rendering-from-objects/app.jsx b/.learn/resets/01.2-rendering-from-objects/app.jsx new file mode 100644 index 00000000..7ff4a2ef --- /dev/null +++ b/.learn/resets/01.2-rendering-from-objects/app.jsx @@ -0,0 +1,13 @@ +import React from "react"; +import ReactDOM from "react-dom"; + +const customer = { + first_name: "Bob", + last_name: "Dylan" +}; + +// your code inside these
tags +const output =
; + +// what where +ReactDOM.render(output, document.querySelector("#myDiv")); diff --git a/exercises/01.2-rendering-from-objects/app.jsx b/exercises/01.2-rendering-from-objects/app.jsx index 7ff4a2ef..565f483c 100644 --- a/exercises/01.2-rendering-from-objects/app.jsx +++ b/exercises/01.2-rendering-from-objects/app.jsx @@ -3,11 +3,16 @@ import ReactDOM from "react-dom"; const customer = { first_name: "Bob", - last_name: "Dylan" + last_name: "Dylan", }; // your code inside these
tags -const output =
; +const output = ( +
+

My name is {customer.first_name}

+

My last name is {customer.last_name}

+
+); // what where ReactDOM.render(output, document.querySelector("#myDiv"));