Below is a list of common React interview questions.
See Chinese version here.
Below is a list of common React interview questions.
See Chinese version here.
Redux is one of the hottest libraries for front-end development in today’s marketplace. It is a predictable state container for JavaScript applications and is used for the entire applications state management. Applications developed with Redux are easy to test and can run in different environments showing consistent behaviour
# Setting up react application | |
• Update npm to npm6+ | |
npm install -g npm | |
• Setting up a basic react application | |
npm init react-app ptim-app | |
• Setting up material ui in react app |
Linting - Linting is the process of checking the source code for Programmatic as well as Stylistic errors. This is most helpful in identifying some common and uncommon mistakes that are made during coding. ESlint is a JavaScript linting tool. Prettifying – formatting the code (similar to ctrl+shift+f in eclipse). Prettier is a well know prettifying tool in JavaScript community.
Integrating Eslint & Prettier in React
https://eslint.org/docs/user-guide/getting-started
Concurrent applications also make optimal use of the processors. But concurrent applications are difficult to develop, maintain, and debug. To develop thread-safe, high-performance, and scalable applications, Java’s low-level threading capabilities are insufficient.
The java.util.concurrent package includes a number of additions to the Java Collections Framework. These are most easily categorized by the collection interfaces provided:
BlockingQueue
defines a first-in-first-out data structure that blocks or times out
when you attempt to add items to a full queue, or retrieve from an empty queue.import React, {Component} from "react"; | |
import ReactDOM from "react-dom"; | |
export default class PartialMatchFilter extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
text: '' | |
}; |
Java inner class is defined inside the body of another class. Java inner class can be declared private, public, protected, or with default access whereas an outer class can have only public or default access.
Java inner classes are divided into 4 categories
Have you ever watched a movie with a group of friends, laughing, shouting, and sharing popcorn, nachos, or fries—all at the same time? If yes, you’ve already practiced multithreading and concurrency.
“Every problem has a solution, and every solution has a problem”—this statement holds true for threads. Threads were created so that they could make the best use of a processor’s time. An application can create multiple threads. When threads share objects among themselves, it can result in interleaving operations (thread interference)