Q311. What is a Regular Expression?
A regular expression is a sequence of characters that forms a search pattern. You can use this search pattern for searching data in a text. These can be used to perform a...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (1,100 available).
A regular expression is a sequence of characters that forms a search pattern. You can use this search pattern for searching data in a text. These can be used to perform a...
You can use `oneOfType()` method of `PropTypes`. For example, the height property can be defined with either `string` or `number` type as below: ```javascript Component.p...
There are six string methods: `search()`, `replace()`, `replaceAll()`, `match()`, `matchAll()`, and `split()`. The `search()` method uses an expression to search for a ma...
You can import SVG directly as component instead of loading it as a file. This feature is available with `react-scripts@2.0.0` and higher. ```jsx harmony import { ReactCo...
Modifiers can be used to perform case-insensitive and global searches. Let's list some of the modifiers, | Modifier | Description | | -------- | -------------------------...
The concept of render hijacking is the ability to control what a component will output from another component. It means that you decorate your component by wrapping it in...
Regular Expressions provide a group of patterns in order to match characters. Basically they are categorized into 3 types, 1. **Brackets:** These are used to find a range...
We can pass `numbers` as `props` to React component using curly braces `{}` where as `strings` in double quotes `""` or single quotes `''` ```jsx import React from "react...
RegExp object is a regular expression object with predefined properties and methods. Let's see the simple usage of RegExp object, ```javascript var regexp = new RegExp("\...
It is up to the developer's decision, i.e., it is developer's job to determine what kinds of state make up your application, and where each piece of state should live. So...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.