JavaScript First, Then React?
Or,
JavaScript ✛ React?

👩‍💻 Beginning Words

There are 3 approaches one can take to start React journey

➊ Complete JavaScript. Then, start React.

➋ Learn the essentials of JavaScript. Then, start React. Finally, learn advanced JavaScript.

➌ Start React. Learn JavaScript alongside.
💭 Why is this Thread?

⬘ JavaScript is a language while React is one JavaScript-based library.

⬗ Looking at the popularity of React, few people directly start learning React without much/prior knowledge of JavaScript. Is this a good idea?
⬙ Whichever approach you may take, it's important to know what JavaScript concepts will make your React journey effective and, smoother.

⬖ We will discuss those essential concepts in this thread.
📋 JavaScript Essentials for React

➊ Basics
➋ String Methods
➌ Array Methods
➍ Array Destructuring
➎ Array Spread
➏ Object Destructuring
➐ Object Spread
➑ Template Literals
➒ ES Modules
➓ APIs & Others
➊ Basics

➀ Variable
➤ Declaration
➤ Scope
➤ Hoisting
➤ Assignment

➁ Functions
➤ Declarations
➤ Expressions
➤ Arrow Functions
➤ Callbacks
➤ Closure
➂ Operators
➤ Arithmetic
➤ Assignment
➤ Comparison
➤ Logical

➃ Literals
➤ String
➤ Array
➤ Object

➄ Condition & Looping
➤ if, if...else
➤ for, for...in, for...of
➤ while, do...while
➋ String Methods

➤ toLowerCase()
➤ toUpperCase()
➤ charAt()
➤ substring()
➤ slice()
➤ includes()
➤ startsWith()
➤ endsWith()
➤ indexOf() / lastIndexOf()
➤ match() / matchAll()
➤ replace() / replaceAll()
➤ repeat()
➤ trim()
➌ Array Methods

➤ forEach()
➤ map()
➤ reduce()
➤ flat()
➤ flatMap()
➤ find()
➤ filter()
➤ slice()
➤ splice()
➤ push()
➤ pop()
➤ shift()
➤ unshift()
➤ some()
➤ every()
https://t.co/HVBUwFigWI
➍ Array Destructuring

It's frequently used in hooks esp. useState()

Example:

⇥ const [fruits, setFruits] = useState([]);

Know more:
https://t.co/Pa7QF30FT3
➎ Array Spread

There are so many use cases. One of the place where we frequently spread an array is adding/updating/removing an item from the state.

Example:
Add an item to the starting of Array

⇥ let newArray = [itemToAdd, ...oldArray]

Know more:
https://t.co/L4Sxv94WOz
➏ Object Destructuring

⬘ Properties are passed as an object parameter to our function component.

⬙ We can destructure it and, specify only those properties that we are going to use.

Example:

function MyComponent({name, address}) {

}
➐ Object Spread

We may spread an object to pass those to a child component.

Example:

function MyComponent({name, address, ...rest}) {
return
}
➑ Template Literals

➤ Untagged Template Literals
➤ Tagged Template Literals
This is used in a few stylesheet libraries.
➒ ES Modules

➤ import
➤ import {}
➤ export
➤ export default
➓ APIs & Others

➤ DOM API
Very important to learn how React handles DOM, events.

➤ Promise API
➤ async...await
These 2 are not hard stoppers though.

➤ Fetch API
Not a hard stopper. Learn for making API calls.
🏁 Final Words

⬘ Learning method varies from person to person.

⬖ Remember, React is a JavaScript Library. JS knowledge is definitely needed. How and, at what time you learn that is tricky.

⬙ To start using React, learn necessary JavaScript concepts.

Happy React journey.
Hey 👋

I am a Tech Educator and, Mentor from India 🇮🇳

I am sharing Tutorials, Tricks, Infographics, Cheat Sheets, Practice Questions, Project Ideas and Roadmaps on Web Development, DSA and, Databases.

To never miss anything, Follow Me ✅

More from Swapna Kumar Panda

🛣 Beginner's Roadmap for Front-End

HTML & CSS → 👩‍💻 → JavaScript → 👩‍💻

👩‍💻 ← React* ← 👩‍💻 ← Tailwind*

TypeScript → 👩‍💻 → Next.js* → 👩‍💻 → 🏁



What would we cover?

➊ HTML & CSS
➋ JavaScript
➌ CSS Frameworks
➍ UI Frameworks
➎ TypeScript
➏ Server-side Frameworks
➐ Practice, Practice and, Practice
➑ Other Skills
➒ Frequently Asked Questions

➊ HTML & CSS

⬘ Your Front-End journey shall always start from HTML & CSS and, ends with these as well.

⬗ Don't over burden yourself to learn everything at once. It's a continuous subject.

⬙ Do not separate HTML from CSS. That's


➋ JavaScript

JavaScript is essential. You should start with basics and move to complex subjects.

❍ JavaScript Syntaxes
(preferably ES6 onwards)
❍ HTML DOM API
❍ Event Handling
❍ Fetch


➌ CSS Frameworks

CSS Framework is necessary if you are planning to be a professional developer.

There are so many options available.

❍ Tailwind CSS
❍ Bootstrap
❍ Chakra
❍ Bulma
❍ Foundation
❍ Skeleton
❍ Pure CSS

Start with anything. You can switch any time.

More from All

Master Thread of all my threads!

Hello!! 👋

• I have curated some of the best tweets from the best traders we know of.

• Making one master thread and will keep posting all my threads under this.

• Go through this for super learning/value totally free of cost! 😃

1. 7 FREE OPTION TRADING COURSES FOR


2. THE ABSOLUTE BEST 15 SCANNERS EXPERTS ARE USING

Got these scanners from the following accounts:

1. @Pathik_Trader
2. @sanjufunda
3. @sanstocktrader
4. @SouravSenguptaI
5. @Rishikesh_ADX


3. 12 TRADING SETUPS which experts are using.

These setups I found from the following 4 accounts:

1. @Pathik_Trader
2. @sourabhsiso19
3. @ITRADE191
4.


4. Curated tweets on HOW TO SELL STRADDLES.

Everything covered in this thread.
1. Management
2. How to initiate
3. When to exit straddles
4. Examples
5. Videos on

You May Also Like