From fa1b3689fc1667a50dad927866b5cc5662dfdee1 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Wed, 1 Feb 2023 00:09:17 +0000 Subject: [PATCH] blargh --- beta/src/components/Layout/HomeContent.tsx | 97 ++++++++++++++++++---- 1 file changed, 82 insertions(+), 15 deletions(-) diff --git a/beta/src/components/Layout/HomeContent.tsx b/beta/src/components/Layout/HomeContent.tsx index d909060a2..b23475c4b 100644 --- a/beta/src/components/Layout/HomeContent.tsx +++ b/beta/src/components/Layout/HomeContent.tsx @@ -55,30 +55,35 @@ export function HomeContent() {
-
{`function UserPanel({ user }) { +
{`function Post({ post, author }) { return ( - - - - + + + + + {author.name} + + + + {post.text} + + ); }`}
-
- Placeholder slot for image -
+

- React lets you build user interfaces out of individual pieces - called components. Create your own React components like a - button, a panel, or an avatar. Then combine them into entire - screens, pages, and apps. + Whether you work on your own or with thousands of other + developers, using React feels the same. It is designed to let + you seamlessly combine components written by independent + people, teams, and organizations.

@@ -94,9 +99,12 @@ export function HomeContent() {

React components are JavaScript functions. Want to show - something conditionally? Use an `if` statement. Need to - display a list? Use a `for` loop or array `map`. Learning - React is learning programming. + something conditionally? Use an if statement. + Need to display a list? Use a for loop or array{' '} + map(). +
+
+ Learning React is learning programming.

@@ -416,3 +424,62 @@ export function HomeContent() { ); } + +function Example() { + return ( +
+
+
+
+
+ Someone Someone +
+
+
+ Lorem Ipsum is simply dummy text of the printing and typesetting + industry. Lorem Ipsum has been the industry's standard dummy text ever + since the 1500s. +
+ +
+
+ ); +}