Feat(program component): adds mattieweathersby new program react component for lesson 22 #815
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Lesson 22 React Homework: What I Learned & Challenges Faced
📚What I Learned
React Project Structure
src/folder for all React code.App.tsx,main.tsx, and how routing is set up.React Router
react-router-domfor client-side routing.main.tsxusingcreateBrowserRouterandRouterProvider.Linkcomponent for navigation without full page reloads.Component Creation
Program,ProgramList) and pages (NewProgram).State Management
Styling
Development Workflow
npm install.npm run dev.Challenges I Faced
Understanding File Structure
src/and not touchnode_modules/or most ofpublic/.Routing Issues
Linkcomponent for navigation.Component Placement
Path and Import Errors
<a href>instead of<Link to>, causing full page reloads.Form Handling
API Integration (if attempted)
@tanstack/react-queryfor fetching and mutating data.General React Syntax
✅Key Takeaways
Linkfromreact-router-domfor navigation in React apps.npm run dev) and check the browser for live updates.src/—that’s where all the React magic happens!