Skip to content

DiegoFelipe/diego-s-food-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diego's Food ordering app

Just practicing react with a food ordering app

**Check the link inside the icon image to see this knowledge being applied in this codebase.

<>

What I've learned and refreshed my knowledge on React:

  • Scoping components with either styled components or CSS modules image (helps avoid UI styles bugs or unwanted behavior by scoping the CSS styles of a component and not letting it be applied globally)
  • React Fragmentsimage (Improves accessibility by avoid unnecessary html nodes)
  • React Portalsimage (Also improves accessibility by being able to move elements in the DOM where it’s most suitable for accessibility, i.e: moving a modal and backdrop to top of DOM instead of being nested on the DOM)
  • React refimage (it actually does a lot of things for example helps with unnecessary states when you only need to read a value for some input field for example)
  • Avoid unnecessary calls to useEffect by passing properties from an object not the whole object as dependencies.
  • Forward Refsimage ( a special case when you need to use the ref from a custom component, not from standard HTML elements by using the useRef and useImperativeHandler hooks, wrapping the custom component with React.forwardRef helper function.
  • Implemented Absolute Importsimage (This is great for productivy as you don't waste time going up and down when using relative path imports)

Preview

preview

About

Just practicing react with a order food app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published