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

Frontend Development: Choosing Libraries the right way

Writing a JS Proxy based assertion function

Top 3 Most Popular Nodejs Frameworks

Algorithm Series: Big O Notation in x minutes

Exploring DECODE, CASE, and more in SQL

Top React Libraries

Git Metric — Solving the Pain of Measuring a Project Migration

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

Open Letter to Online Creators: Help Yourself Before You Help Others

Feel Better Now: A Framework for Therapy

What Keeps you Confused?

Procrastination: Change, Turbulence, and Lethargy During My First Semester