Simplifying DOM manipulations, Data fetching and other effects

Use Cases

As a web developer you should be comfortable manipulating the DOM and performing other side effects now and then. With React’s useEffect hook, you can easily manage and perform side effects in function components. Examples of side effects in React include:

  • Data fetching
  • Setting up a subscription
  • Manually changing the…

Learn how to use state in a functional component.

What are Hooks?

With the introduction of Hooks in React 16.8 (released February 16, 2019), you can now use state in a functional component. These built-in functions “hook” into React’s state and lifecycle methods — no more complicated “this”, binding, passing state around in class components!

The 3 basic built-in hooks are useState…

The two JavaScript types that are not primitive values.

JavaScript is comprised of 9 fundamental types of values. Of the 9 types, 7 are primitive. My last article covered the importance of understanding primitive values here. The remaining 2 types are Objects and Functions, and I will go into detail about them here.

  • Objects ({}, []) used to group…

Pre/Post Increment/Decrement Operators Explained.

Increment Operator ++

If you have a basic understanding of any programming language then you’re likely familiar with for loops and have probably used the ‘++’ operator. The increment operator written as ‘++’ adds one to its operand and the decrement operator ‘ — — ’ subtracts one from its operand.

Languages that…

Project ideas, resources, awesome public APIs, and more

Looking to be productive and build a project during this downturn but don’t know where to start? I’ve broken down the thought process of how to drill down and decide on a project idea that you would be both passionate about and proud of!

Find your Passion [Project]

To decide on a project that…

aliciachao

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