https://github.com/nazmul-nhb/fullstack-assignment-future-skills
Help Center API Assignment for Future Skills
https://github.com/nazmul-nhb/fullstack-assignment-future-skills
api expressjs fullstack future-skills help-center javascript mern-project mern-stack nodejs reactjs rest restful-api server
Last synced: 3 months ago
JSON representation
Help Center API Assignment for Future Skills
- Host: GitHub
- URL: https://github.com/nazmul-nhb/fullstack-assignment-future-skills
- Owner: nazmul-nhb
- Created: 2024-08-18T05:06:14.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-19T08:10:42.000Z (almost 2 years ago)
- Last Synced: 2025-03-23T18:14:20.363Z (over 1 year ago)
- Topics: api, expressjs, fullstack, future-skills, help-center, javascript, mern-project, mern-stack, nodejs, reactjs, rest, restful-api, server
- Language: JavaScript
- Homepage: https://future-skills-help-center.vercel.app
- Size: 1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Help Center API Assignment for Future Skills
- [Backend Details](https://github.com/nazmul-nhb/fullstack-assignment-future-skills/tree/main/backend)
- [Frontend Details](https://github.com/nazmul-nhb/fullstack-assignment-future-skills/tree/main/frontend)
- [Backend API Live Link](https://future-skills-help-center-api.vercel.app)
- [Frontend Live Link](https://future-skills-help-center.vercel.app)
## React Assignment : Answers to the Questions
1; How can you implement shared functionality across a component tree?
Shared functionality across a component tree in React can be implemented using the following approaches:
- **Context API**: Provides a way to share data (like themes or authenticated user details) across components without prop drilling.
- **Higher-Order Components (HOCs)**: Wrapping components to inject shared logic.
- **Render Props**: Passing functions as props to share functionality across components. (Used in this Assignment)
- **Custom Hooks**: Encapsulating shared logic that can be reused across multiple components.
2; Why is the useState hook appropriate for handling state in a complex component?
The `useState` hook is appropriate because:
- It provides a simple and intuitive way to manage state within functional components.
- It supports complex state management by allowing you to store objects, arrays, or primitive values.
- It enables easy updates and re-renders based on state changes, ensuring UI consistency.
- You can manage multiple pieces of state separately, avoiding complex state structures.