What is the useEffect Hook in React and how to use it (with example)?

In this article, we are going to cover the most important and best hook called useEffect().

Note —

I have also written a blog on the Basics of React Hooks and useState hook so if you are new to React or you want to brush up then you should definitely check this out.

Prerequisite —

You should know the basics of HTML, JavaScript, React and how React works, and the basics of React hooks (the link for the basics of React hooks and the useState hook is provided above).

And if you fulfill these prerequisites, then you are good to go.

So before we…


Hey!!! My name is Nandit Shah. I am a student. I am writing my first blog about creating a web-app using react that get us the fact about the number we write in. It is small and structured project to clear up your basics nicely in react.

Preview of the web-app

NOTE : I Am not going to cover CSS part of this project you can download this from my git-hub link.

Click here to download all the files of my project.

In this Project we are going to use Numbers API. It is the API that give as fact about numbers ,dates ,years etc.

It is very fun API for creating projects for practice.

For learning more about axios click here

First of all…


Basics of React Hooks — the useState hook

In this story, we are going to cover all the basics of React hooks and learn about the built-in React hook called useState().

Prerequisite —

You should know the basics of HTML, Javascript, What is React and how does it work.

And if you fulfill these prerequisites, then you are good to go.

What is React Hooks?

  • React Hooks were introduced in React 16.8.
  • React hooks are basically functions that let you handle the state of web apps, And they let you easily work with other React features such as componenDidMount(), componenDidUpdate() without writing a class.
  • You can use React hooks in functional components only, not…


In this article, we will cover non-linear data structures in Python such as Tree, Hash-map, and Graph.

Prerequisite

You should have basic knowledge of the Python programming language.

The entire code for this article is available in my GitHub repo.

In the first part of this article, we covered the basics of data structures and linear data structures such as Stack, Queue, Linked-List, Arrays.

Now in this article, we will cover non-linear data structures such as Tree, Hash-map, and Graph.

What are Non-linear Data Structures?

A data structure in which data is not stored in a linear format like arrays or stack. This type of data structure is known as non-linear data structures.

Non-linear data structure is a recursive type of data structure.


Array, Stack, Queue, Linked-List

You Should have basic knowledge of the Python programming language.

All the code part of this article is available in my git-hub repo.

What Is Data Structures?

So First of all we have to understand what is DS and why are they so important in any CS/IT fields or why DS are the main focus of any software engineering interviews.

Data structures are the way of storing and organizing data in your program. with the help of different DS we can store and organize organize data in an efficient way. Using DS increase the efficiency of our program. …

Nandit Shah

Student | Web Developer | MERN Stack | Python | Deep learning

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