Pratham Profile picture
22 Jun, 13 tweets, 3 min read
Planning to learn React? Knowledge of a few JavaScript concepts can make the process easier for you.

Let's see some basic JavaScript modules that can help you πŸ§΅πŸ‘‡πŸ»
Keep JavaScript aside for a moment, Knowledge of basic HTML and CSS is a must in my opinion.

React is all about building user interface so you'll be working with HTML and CSS as well. So start with these first
1. Basic programming knowledge which is must

- Data types in JavaScript
- Variables
- Statements
- Control statements
- Operators
2. Functions

A JavaScript function is a block of code designed to perform a particular task. This is again pretty basic stuff.
3. Arrow functions syntax

Arrow function is a new ES6 feature that's been used almost widely in modern codebases because it keeps the code concise and readable. It allows a short syntax for writing function expressions.
4. Destructuring assignment

Destructuring is a convenient way of accessing multiple properties stored in objects and arrays.

Let's say: πŸ‘‡πŸ»
5. Array methods

You will use the Array method multiple times. So try to learn them before jumping onto React

Some commonly used functions are
- map
- filter
- reduce
- find
- findIndex
6. Special operators

Not mandatory but knowledge of these two can be useful. This is not a big concept or something. You can learn it literally in about a minute

- Ternary operator
- Spread operator

doYouLikeMyTweets ? "Yes": "Definitely yes";
7. Callback functions

A function passed as an argument to another function is called a callback if the function invokes the argument at a later time

You will use callbacks while working with hooks, forms, and other things. A quick example πŸ‘‡πŸ»
8. Async, await and promises

Async function is a function that returns some promise. A promise is a special JavaScript object that links the β€œproducing code” and the β€œconsuming code” together. Whereas await makes a function wait for a promise.
Here is the React introductory thread that can help you kick-start your React journey.

React Hooks thread that might sound useful to you

And I guess that's pretty much it for this thread. Hope you find it helpful πŸ’–

β€’ β€’ β€’

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

Keep Current with Pratham

Pratham 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 @Prathkum

23 Jun
I have created enormous handmade notes for Web development beginners.

Here are some of my handmade JavaScript and CSS notes/cheat sheets that can help you 🧡 πŸ‘‡πŸ»
0. Semantic HTML Image
2. CSS border-radius Image
Read 13 tweets
23 Jun
Let's talk about some CSS concepts that we rarely used but they will prove that CSS is so deep.

πŸ§΅πŸ‘‡πŸ»
1. Select grammatical errors

::grammar-error pseudo-element select a grammatically incorrect sentence. Although this feature has not been standardized yet.

πŸ”— developer.mozilla.org/en-US/docs/Web…
2. You can optimize the performance of your web page by adding one line of CSS

The `will-change` property

- will-change tells the browser that how an element is expected to change
- Increase the responsiveness Image
Read 7 tweets
23 Jun
I again brought 5 awesome GitHub repositories for beginners

πŸ§΅πŸ‘‡πŸ»
1. Project-based learning

A curated list of project-based tutorials covering JavaScript, Python and many other popular languages

πŸ”— github.com/tuvtran/projec…
2. Awesome Linux software

A list of awesome applications, software, tools, and other materials for Linux distros

πŸ”— github.com/luong-komorebi…
Read 6 tweets
22 Jun
Are you planning to create your first CSS art for fun? Start with the basic shapes.

Here are 26 easy to hard shapes and figures you can try first πŸ§΅πŸ‘‡πŸ»
In general, analyze any image and try to think how can you make it using different shapes.

Two concepts that you need to master

1. border-radius
2. linear-gradient
1. Circle Yellow πŸ”΅

- Pretty simple, we just need to make a square and apply the border-radius 50% in order to give it a circular shape
Read 28 tweets
22 Jun
Here are some great websites that can help you in your next web development project.

Including colors, accessibility, backgrounds, icons, testing, and much more πŸ§΅πŸ‘‡πŸ»
1. Color hunt

- Color Hunt is a free and open platform for color inspiration with thousands of trendy hand-picked color palettes

πŸ”— colorhunt.co
2. Adobe color wheel

Explore and create accessible color palettes using color wheel, in a variety of color variations and contrast levels. It will tell you automatically if two colors are not accessible

πŸ”— color.adobe.com/create/color-a…
Read 21 tweets
19 Jun
JavaScript is an enormous language but you don't need to learn everything in the beginning.

Here is the detailed explanation on JavaScript for Web Development πŸ§΅πŸ‘‡πŸ»
JavaScript is a kind of language that as you progress deeper in the field, you will come to know a lot more cool concepts about it.

Prerequisites if you want to learn JavaScript for web development πŸ‘‡πŸ»

- HTML
- CSS
First and foremost, it's a programming language so you should know about basic programming concepts:

- Data types in JavaScript
- Variables
- Statements
- Control statements
- Operators
- And other basic stuff....
Read 19 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!

:(