Challenges

Introduction

Finally

Amazing. You are still here. šŸŽ‰

I think you might wonder, why we create a component to just render a welcome message like. We can easily, write it like this:

function Page() {
    return (
        <div>
            <h1>Hello World</h1>
            <div>
                <hr/>
                <p>Welcome to React</p>
            </div>
        </div>
    )
}

Of course, yes.

But a "Component" is a way to reuse code/UI in React. We can do a lot, including passing values, manage states, and even fetch data. We will look at most of these in upcoming lessons.

Stay safe šŸ˜· & follow me.

šŸ™ We need your help

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