What is Redux ?
What is Redux? Redux is an open-source JavaScript library for managing and centralizing application state.Redux follows the unidirectional data flow. It means that your application data will follow in one-way binding data flow. Installation:Core Redux npm install reduxTo use Redux with react application, you need to install an additional dependency as followsnpm install react-redux Core […]
Styled Components in React
What is Styled-Components?Styled-Components lets you write actual CSS in your JavaScript. This means you can use all the features of CSS you use, including media queries, all pseudo-selectors, nesting, etc. Motivation• Automatic critical CSS: styled-components keeps track of which components are rendered on a page and injects their styles and nothing else, fully automatically. Combined […]
What are React Hooks ?
MotivationEach lifecycle method often contains a mix of unrelated logic. Mutually related code that changes together gets split apart, but completely unrelated code ends up combined in a single method. We have to understand how this works in JavaScript, which is very different from how it works in most languages. We have to remember to […]