React: Day 10

React day 10

Today I learned about lifecycle in React, each component in React has lifecycles. There are 3 main things that we need to consider here, mounting, updating, and unmounting.

The mounting part is when a component is initialized, an ideal example would be putting elements in the DOM.

class MyClass extends React.Component {
constructor(props) { 👈 Mounting lifecycle method
this.state = {…

Road to dev

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

Recommended from Medium

Seeing this photo taken today ( by Given makananiso,) it was SOOO clear we are on the right path.

Teens in Diepsloot learn to write JavaScript Games with and the Code for Change team in South Africa.

What is NODE JS ?

JavaScript or TypeScript.

GraphQL Schema, Queries and Relationships ( node.js )

6 Reasons to Use ReactJS for Web Development

IBM Watson Tone Analysis of Web Scraped Data

Create WhatsApp clone with Next.js Part 7 Sidebar notification

How to download and install a npm package globally in Node.js?

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
Chanak Karki

Chanak Karki

Road to dev

More from Medium

onMouseEnter and onMouseLeave — A simple way to hover in React

Learn how easily you can create and configure the React Dropdown List of Syncfusion using the…

Reflections ~My First React Project

Learn React Router V6 with a simple example!