Challenges

Introduction

Let's do a hello world in React.

function Page() {
    return (
        <div>
            <h1>Hello World</h1>
            <p>This is a paragraph</p>
        </div>
    )
}

ReactDOM.render(
    <Page />,
    document.getElementById("root")
);

Okay. This seems like JavaScript, but also there are some HTML inside it. I'm pretty sure you will be thinking like this:

šŸ˜” WTF is this?

Don't worry. I was just like you when I discovered React for the first time. Stay with me. I'll clear things out.

šŸ™ We need your help

We need your help to keep maintain & add new content to this course. Here's how you can support us: