Useful React Resources
June 01, 2019
Hi guys, welcome to my first post! I made this blog in an effort to help any people who might be as lost as I was when trying to find a place to start learning web development. I hope that by documenting my experiences it will help those that may find themselves lost. And trust me - you are definitely not alone!
I’d like to start off by saying before I started working, I had no prior exposure to any web development. In college, I was mainly creating console applications. Hopefully this will serve as a good starting point for people who are just getting into React.
I think I’ll make a separate blog post eventually explaining what React is and why it’s such a great library, and then eventually get into the bigger picture of how this all fits in with web development. For now, I’m just going to list the resources that I’ve used that have helped me learn React.
Useful React Resources
Where Do I Start?
Honestly, the React team did a great job with their own documentation. Start there!! It might take a while to understand, but trust me when I say that all of the main concepts they go over are very beneficial to learn, and definitely necessary once you start developing your own applications.
State and Lifecycle
If there’s one thing that I could emphasize within React’s main concepts, it would definitely be the state and lifecycle of components. It’s necessary to know the component lifecycle when you want to debug your components, and if you want to understand how React is rendering your application. If you don’t understand the lifecycle, optimizing for performance will be a pain, and you’ll run into a lot of issues that may not be caught by the compiler.
React Developer Tools
You will get a new tab called React in your Chrome DevTools. This shows you the root React components that were rendered on the page, as well as the subcomponents that they ended up rendering.
By selecting one of the components in the tree, you can inspect and edit its current props and state in the panel on the right. In the breadcrumbs you can inspect the selected component, the component that created it, the component that created that one, and so on.
If you inspect a React element on the page using the regular Elements tab, then switch over to the React tab, that element will be automatically selected in the React tree.
If you want a deeper dive into the dev tools, check out this sweet post from Alligator.io
So, it’s starting to look like the new wave for creating components are using hooks within functional components. Bascially, hooks are a way to use stateful logic within functional components. Note that the React team aren’t removing classes from React, so don’t think that classes are dead or anything!
To be honest, I found it easier for myself to learn the component lifecycle by studying class components, since the way hooks implement the lifecycle are a little tricky if you’re new and don’t understand what’s happening.
To read more, check out ReactJS’s Intro to Hooks.
For a deep dive into useEffect and how the lifecycle works with hooks, check out this amazing blog post by Dan Abramov.
React Cheat Sheet
Self explanitory, if you need quick references on some key methods & fundamentals, check out this cheat sheet
That’s it for now! I’m going to be updating these resources and organizing them better in the coming weeks. Stay tuned!
Written by Chris Fulgencio who lives and works in Los Angeles. You should follow him on GitHub.