vlahou89 / api-nested-comments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Live Demo

https://nested-comments.web.app/

Methodology Used

  • This React application has been created in order to display comments and replies (inc nested replies) from an API.
  • The data fetching achieved by using axios and useEffect hook.
  • Next, we had to map through the array with data and display the main comments and users.
  • In order to get and display the nested comments, a recursive function has been used.
  • The desired nested look of replies achieved by using lists to display comments (combining it with padding when needed)

Getting Started

This project was bootstrapped with [Create React App]

npm install

Installs the npm package

npm axios

Installs the axios package

npm install node-sass

Installs the sass package

npm install node-sass

Installs the sass package

#npm start Visit http://localhost:3000/ to view the app

About


Languages

Language:JavaScript 50.6%Language:HTML 25.9%Language:SCSS 23.5%