Class 4

This week we learned about conditional and dynamic rendering to help build a react webpage

The key difference is that state is internal and controlled by the component itself while props are external and controlled by what renders the component

ReactDOM connects react to the DOM, used with the ReactDOM.render() method

React is a JS library that contains how everything else works

How class based components used to be created

Instead of using an event handler on each individual element, you can put a single handler on the parent of related elements. It is useful because it helps clean up the code and limit what you have to write

I like the react hooks that allow us to use functions rather than classes in React because it makes the code simpler and easier to write

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Getting started with Yarn 2: Ambiguous imports

Interacting with Smart Contracts using Solidity & Web3

Build a PWA with Next.js to Achieve 100% in Google Lighthouse and Next.js Analytics

Typed Routes with TypeScript

LeetCode- Remove vowels from a string

Observer Pattern Applied: Solving Sudoku, Easy Ones

Build your own Chrome Extension

Preview of the Popup

You don’t need a fancy framework to use GraphQL with React

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ryan Pearson

Ryan Pearson

More from Medium

Your Comfort Zone Is Costing You Way Too Much: Step Out Of It And Seize Your Dreams

The SOLID Principle of Object-Oriented Programming

Attachment Issues