Building a React Portfolio Website from Scratch: Creating React Js HomePage Components | PART 2 🧑🏻‍💻

Posted by

React Portfolio Website Tutorial – PART 2

React Portfolio Website Tutorial From Scratch – PART 2

Welcome to the second part of our React Portfolio Website tutorial. In this tutorial, we will be building the homepage components of our React portfolio website.

Creating Components

First, let’s create the components that we will be using on our homepage. We will create a Header component, a About component, a Services component, a Portfolio component, and a Contact component.

        
            <Header />
            <About />
            <Services />
            <Portfolio />
            <Contact />
        
    

Styling Components

Next, let’s style our components using CSS. You can either create a separate CSS file for each component or use inline styles. Here’s an example of styling the Header component using inline styles:

        
            <style>
                .header {
                    background-color: #333;
                    color: #fff;
                    padding: 10px;
                    text-align: center;
                }
            </style>
        
    

Rendering Components

Finally, let’s render our components in the App.js file. Here’s an example of how you can render the Header component:

        
            import React from 'react';
            import Header from './Header';

            function App() {
                return (
                    <div>
                        <Header />
                        <About />
                        <Services />
                        <Portfolio />
                        <Contact />
                    </div>
                );
            }

            export default App;
        
    

Now you have successfully created the homepage components of your React portfolio website. Stay tuned for the next part where we will be adding more functionality to our website.

0 0 votes
Article Rating
5 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
@rafisyed3836
1 month ago

Hi bro. You seems to be pro in React JS. Are you working in FAANG? I am from non IT. I am in dilema what path should i choose to enter in IT. I have almost 7 years exp in non it also I am 33 yrs old. Is it possible to switch to IT. If yes what technology i should choose as I don't have proper direction . Not sure if I can learn or survive development or coding.

@CODEINFINITY
1 month ago

Amazing brother 💞🔥…. source code please

@amangwari
1 month ago

awesome bro appreciate your work…..can you make this responsive too it will helps me alot bkz i am working with scss first time

@sayamkhajuria
1 month ago

Big fan sir 🤌💝

@lostemperor_08
1 month ago

Thanks bro ✨️