Skip to content

Khan4218/Chef-Claude-project-3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🚧 Section 3: In Progress

  • Section 3 focuses on state, forms, and conditional rendering in React. Here's a summary of the concepts being explored:
  • Props vs. State in React
  • Using the useState hook
  • Updating state (primitives, arrays, and objects)
  • State change with callbacks
  • Toggling state with ternary and &&
  • React forms: input, textarea, radio, checkbox, select
  • Handling form submissions
  • Conditional rendering (&&, ternary operators)
  • Passing state between components
  • Shared vs. local state
  • Dynamically applying styles
  • Real-world app simulation with interactive challenges
  • Fetching data from APIs and handling responses

βœ… Section 3 Highlights

  • Props vs. State in React
  • Using the useState hook
  • Updating state (primitives, arrays, and objects)
  • State change with callbacks
  • Toggling state with ternary and && operators
  • React forms: input, textarea, radio, checkbox, select
  • Handling form submissions
  • Conditional rendering (&&, ternary operators)
  • Passing state between components
  • Shared vs. local state
  • Dynamically applying styles
  • Real-world app simulation with interactive challenges
  • Fetching data from APIs and handling responses

πŸ“Œ Project 3: Chef Claude Recipe App (Completed)

  • An interactive recipe app that fetches recipes based on ingredients entered. Concepts included:
  • Managing complex state with arrays and objects
  • Forms and controlled inputs
  • API integration with Hugging Face for recipe generation
  • Conditional rendering for loading and results
  • Markdown rendering for recipes
  • Using useEffect added a scrolling view to Get a recipe button

πŸ”— Live Demo: [akbar-chef-claude-project-3][https://akbar-chef-claude-project-3.netlify.app/] πŸ“‚ Folder: React-project-3

What's Next

πŸ”œ What's Next 🚧 Section 4: Coming Up

  • In this section, I'm diving deeper into advanced React concepts with a fun Meme Generator App project. Here's what’s on the roadmap:
  • Meme Generator Starting Point
  • Managing state for meme data
  • Controlled Components (Parts 1 & 2)
  • Planning and performing data fetches
  • Functional programming in React
  • Fetching meme data from an API
  • Introduction to useEffect
  • useEffect syntax and default behavior
  • Understanding the dependencies array
  • useEffect with empty dependency array
  • useEffect quizzes and practical exercises
  • Using useEffect to fetch memes
  • Combined state and effect practices
  • Cleanup functions in useEffect
  • Generating a random meme
  • Sneak peek into Refs in React
  • Practical use: scrollIntoView() with useRef
  • Fixing iframe scroll bug
  • Wrapping up with a Section 4 summary
  • Stay tuned as I implement, break, fix, and learn from building an interactive meme generator powered by external APIs and React hooks!

To run any project locally:

cd project-folder-name
npm install
npm run dev

About

Chef Claude – React Recipe App 🍳 An interactive React app that generates AI-powered recipes based on user-inputted ingredients. Built using useState, controlled components, and fetch with Hugging Face API integration. Features markdown rendering, conditional UI logic, and form handling in React.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors