Majority of developers are using ReactJS for web development.

It's the best JavaScript library to learn that will bring you more money. 💸

Here are 11 concepts you should know to stand out from the rest.

THREAD 🧵 ↓
1. Lifecycle methods with React Hooks

Why use the class component when you have hooks?

Even if the Hooks-based implementation is difficult to understand at the beginning but it’s worth switching to Hooks at the end.
To master React hooks you need to understand the following concept 🎯

• useState
• useEffect
• useRef
• useReducer
• useCallback
• useContext
• useLayoutEffect
• useImperativeHandle
• useDebugValue
2. Destructuring

To write cleaner code, you can destructure the props object into separate variables using ES6 object destructuring.

It is one of the most underrated features.
3. Memorize

Optimizing React app performance with the memo is a life hack.

It is very much important to know about the different types of methods you can use for optimization.

• React.memo
• React.useMemo
• React.useCallback
• React.PureComponent
4. Default Props and PropTypes

As your app grows, you can catch a lot of bugs with type-checking.

It will help you prevent obvious bugs right out of the box
5. useState Lazy Initialization With Function

There are times when we need to set the initial value of the state from some variable or from a function that returns a value.

This is the ultimate performance booster.
6. Retain Previous Value

While updating props or state, you can retain their previous values just by using React.useRef
7. Higher-Order Components

A higher-order component is a function that takes a component and returns a new component.

React’s Higher Order Component is a pattern that stems from React’s nature that privileges composition over inheritance.
8. Making Use of Custom Hooks

With hooks, we don’t have some facility that can help us get the callback as in the case of setState.

Make use of custom hooks to reduce the code

For more easy-to-understand hook recipes

usehooks.com
9. Monitor Unnecessary Renders in Your Applications

There are different ways to evaluate unnecessary renders in minutes in your React application.

Use this package to do a post-mortem of the app.

github.com/welldone-softw…
10. React DevTools

React Developer Tools is a Chrome DevTools extension for the open-source React JavaScript library.

It allows you to inspect the React component hierarchies in the Chrome Developer Tools.

Mastering this is a life hack.
11. ...Spread operator

The three dots syntax (…) is part of ES6 and not React itself

Stop passing each prop in the Child component as an individual prop, you can pass everything a once with this hack.
Check out this thread for top libraries of React that you could consider trying for your next project.

Thanks for stopping by and reading about this.

1. Retweet to inspire others

2. Like if you loved this

3. Follow @MakadiaHarsh for more such tips and tricks

Cheer! 🥂

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Harsh Makadia

Harsh Makadia Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @MakadiaHarsh

20 Sep
Writing content and blogs about my web development journey has changed my life.

I earned over $1000+ and got 7000+ followers over the different platforms in the last 3 months.

Here is why you should consider writing, It's the most valuable skill to have.

Thread 🧵 ↓
{ 1 } Blogging is still the king of content

More marketers are using video to reach out to their target audience, but the strategy still has not replaced blogging on top of the totem pole.

Writing blogs now is like investing in future
{ 2 } Demonstrate your credibility

Blogging helps establish your credentials.

Find time to write a blog at least once a week so that you can continue to connect with your audience.
Read 16 tweets
18 Sep
Are you a JavaScript Rockstar? It's time to test your brain 🧠

Let's find out in the thread ↓

All the best! 👍🏻
var num = 8;
var num = 10;

console.log(num);
const a = {};
const b = { key: 'b' };
const c = { key: 'c' };

a[b] = 123;
a[c] = 456;

console.log(a[b]);
Read 16 tweets
17 Sep
I made a swipe file that includes:

• 30+ Tweet formats
• Tweet Ideas
• Twitter DM
• Twitter SEO
• Writing threads
• Profile optimization
• Bonus content

Drop a 💣 in the comment and steal it for $0 💵
[ Free For 18 hrs* ]

Want to skip the queue? ↓ Harsh-Twitter
Grab the copy now for $1 / $2 / $5 / $7.99 or $10

harshmakadia.gumroad.com/l/twitter-tool… 🎉

Retweeting the first tweet is appreciated to help others grow!

Cheers! 🥂
Already 500+ comments, Closing the replies now. 🙏🏻

Thanks for amazing response. I'll try by best to sent the link sooner.

However you can get it right away from here.

harshmakadia.gumroad.com/l/twitter-tool…
Read 4 tweets
15 Sep
Learning programming is hard.

I felt like quitting 6 years back when I started my web development journey.

But I survived in TECH and I love it now.

Here are 21 lessons I wish I'd known earlier in my career.

THREAD 🧵 ↓
{ 1 } Choose a language

There are an unbelievable number of programming languages out there.

But, the thing is, you need to start slow.

Pick one thing at a time and practice as much as possible. Then, you can move on to the next.
{ 2 } Understand a programming concept

You may be tempted to cut corners when learning a new programming language. While it's OK to use Google to find answers, don't by-heart the syntax.

If you don't remember the syntax that's fine, but remembering the concept is a must.
Read 25 tweets
13 Sep
25 Hand-Picked ReactJS Libraries You Probably Didn't Know Existed 😍

Using these will put Web Developer on Steroids.

THREAD 🧵 ↓
{ 1 } React Hot Toast

The Best Toast in Town. Smoking hot React notifications.

Add beautiful notifications to your React App

react-hot-toast.com
{ 2 } React Content Loader

SVG-Powered component to easily create placeholder loadings (like Facebook's cards loading).

skeletonreact.com
Read 28 tweets
10 Sep
17 Killer Websites for Web Developer 🤯

99.8% don't know all of them.

THREAD 🧵 ↓
1. Random Image via API

The most powerful photo engine in the world.

The Unsplash API is a modern JSON API that surfaces all of the info you’ll need to build any experience for your users

source.unsplash.com
2. Embeddable Widget Apps for Notion

Add 3rd party apps embed or create a custom embed for your Notion Document.

apption.co
Read 20 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(