cheatsheet of Class Component, Functional Component, JSX, Without JSX in React JS
There are two types of Components.
To understand this I recommend doing this course: Object-Oriented Data Structures in C++ by Wade Fagen Ulmschneider .
Memory in C++ is divided into two parts.
1) Stack Memory
2) Heap Memory
Stack Memory: All variables declared inside the function are stored in stack memory.
Heap Memory: This is unused memory of the program and can be used to allocate the memory when the program runs.
By default, every variable in C++ placed in stack memory.
Every variable in C++ has four things.
1) A name
2) A type
3) A value
4) A location in memory
int primeNumber =…