Skip to content

Implement Task Manager global state with Context API #18

Open
John4-btye wants to merge 1 commit into
learn-co-curriculum:mainfrom
John4-btye:feature/task-content
Open

Implement Task Manager global state with Context API #18
John4-btye wants to merge 1 commit into
learn-co-curriculum:mainfrom
John4-btye:feature/task-content

Conversation

@John4-btye

Copy link
Copy Markdown

This PR implements full state management and interactivity for the Task Manager application.

Changes include:

  • Implemented global state using useContext
  • Created TaskProvider inside TaskContext.jsx
  • Replaced local tasks state in App with context
  • Wrapped App with TaskProvider in main.jsx
  • Implemented addTask with POST request
  • Implemented toggleComplete with PATCH request
  • Added useId for accessible form inputs
  • Implemented dynamic search using useRef
  • Filtered tasks via context in TaskList

All tests are passing.

@John4-btye John4-btye closed this Mar 2, 2026
@John4-btye John4-btye reopened this Mar 2, 2026

@John4-btye John4-btye left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant