This is an interactive comment section built using React and Context API. The project is scaffolded using Vite. Click here, for a quick tour.
-
Comment
- Add new comments to the section.
-
Reply
- Reply to existing comments.
-
Edit Comment
- Edit the text of existing comments.
-
Edit Reply
- Edit the text of existing replies.
-
Delete Comment and Reply
- Delete comments and replies.
- Node.js (version 14 or higher)
- npm or yarn
-
Clone the repository:
git clone https://github.com/your-username/interactive-comment-section.git cd interactive-comment-section
-
Install the dependencies:
npm install # or yarn install
-
Start the development server:
npm run dev # or yarn dev
-
Open your browser and navigate to
http://localhost:3000
.
-
Build the project:
npm run build # or yarn build
-
Serve the production build:
npm run serve # or yarn serve
- Type your comment in the input box.
- Click the "SEND" button.
- Click the "Reply" button on the comment.
- Type your reply in the input box that appears.
- Click the "Reply" button on the input box.
- Click the "Edit" button next to the comment or reply.
- Edit the text in the input box that appears.
- Click the "Update" button.
- Click the "Delete" button next to the comment or reply.
- Confirm the deletion in the prompt that appears.
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to copy and paste this markdown into your `README.md` file. Adjust the repository URL and any other details specific to your project as needed.