Build Responsive React Portfolio

ReactReactBeginner
Practice Now

This tutorial is from open-source community. Access the source code

Introduction

In this tutorial we will build a responsive Portfolio Project in React from scratch. This tutorial will teach you how you can develop your own modern 2023 ready personal portfolio website using reactjs, html & css.
The development process is simple and we won't do any API calls. Content/Text for this website will be hardcoded in your components.


Skills Graph

%%%%{init: {'theme':'neutral'}}%%%% flowchart RL react(("`React`")) -.-> react/FundamentalsGroup(["`Fundamentals`"]) react(("`React`")) -.-> react/AdvancedConceptsGroup(["`Advanced Concepts`"]) react(("`React`")) -.-> react/StateManagementGroup(["`State Management`"]) react/FundamentalsGroup -.-> react/jsx("`JSX`") react/FundamentalsGroup -.-> react/components_props("`Components and Props`") react/FundamentalsGroup -.-> react/event_handling("`Handling Events`") react/AdvancedConceptsGroup -.-> react/hooks("`React Hooks`") react/StateManagementGroup -.-> react/use_state_reducer("`Using useState and useReducer`") subgraph Lab Skills react/jsx -.-> lab-67591{{"`Build Responsive React Portfolio`"}} react/components_props -.-> lab-67591{{"`Build Responsive React Portfolio`"}} react/event_handling -.-> lab-67591{{"`Build Responsive React Portfolio`"}} react/hooks -.-> lab-67591{{"`Build Responsive React Portfolio`"}} react/use_state_reducer -.-> lab-67591{{"`Build Responsive React Portfolio`"}} end

Personal Portfolio

To get started, open the editor. You can see the following files from your editor.

├── public
├── src
│   ├── components
│   ├── App.css
│   ├── App.js
│   ├── index.css
│   └── index.js
├── package-lock.json
└── package.json

Requirements

  • To install the project dependencies, use the following command:

    npm i
  • Please complete this challenge in the src/App.js file.

  • The toggleVisible function is defined to check the scroll position and update the showBackToTopBtn state accordingly.

  • The useEffect hook is used to add an event listener to the window's scroll event, which triggers the toggleVisible function.

  • The scrollToTop function is defined to scroll the window to the top when the back-to-top button is clicked.

Example

Once you have completed the code, run it with the following command:

npm start

The finished result is as follows:

finished

Summary

Congratulations! You have completed the Personal Portfolio. You can practice more challenge in LabEx to improve your skills.

Other React Tutorials you may like