-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

React Interview Guide
By :

React is based on JavaScript and JavaScript is a loosely typed language. So, we don’t get the default static type-checking feature in React.
In its older versions (<15.5), React had PropTypes
validators so that it could perform simple type checking in applications. Post that, this library was moved out from React’s core module and created as a separate library, prop-types
(https://www.npmjs.com/package/prop-types). Nowadays, PropTypes
are not commonly used in modern React applications. Even though static type checking is not mandatory in React, you might encounter some questions related to static type checking in the interview.
There are many benefits of static type checking in JavaScript applications. Some of these are listed here: