Tag Archives: component

Higher-Order Components

Higher-Order Components are what they sound like. A function that takes a component and returns a replacement component is an example of a higher-order component. Higher-Order Components in React may be a pattern that stems from React’s nature, which favors composition over inheritance. Consider the following scenario: In the preceding example, a higher-order component could Continue Reading »

Class component vs functional component

In React Native mainly two types of components Class Component & Functional Component.  Class components are ECMAScript2015(ES6) that extend a base class from React called Component. It is used as a container component to handle state management. Before introducing the concept of hooks in React 16.8 functional component is a plain javascript function but after Continue Reading »