Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseGeek78 committed Oct 25, 2023
1 parent 95707d6 commit 693255c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .learn/resets/01.2-rendering-from-objects/app.jsx
Original file line number Diff line number Diff line change
@@ -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 <div> tags
const output = <div></div>;

// what where
ReactDOM.render(output, document.querySelector("#myDiv"));
9 changes: 7 additions & 2 deletions exercises/01.2-rendering-from-objects/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@ import ReactDOM from "react-dom";

const customer = {
first_name: "Bob",
last_name: "Dylan"
last_name: "Dylan",
};

// your code inside these <div> tags
const output = <div></div>;
const output = (
<div>
<h1>My name is {customer.first_name}</h1>
<h2>My last name is {customer.last_name}</h2>
</div>
);

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

0 comments on commit 693255c

Please sign in to comment.