- Virtual Dom: In simple virtual dom is the copy of the actual dom. Every time a change happened to the dom, the virtual dom compares the virtual dom and the actual dom elements. If anything changes then update and display the change on the UI.
PropTypes: Sometimes a developer didn't do anything wrong but react app shows a warning. To avoid this you can use the
prop types package.
Performance optimization: Internally a react application has huge dom actions that can slow down your application. For this reason, you should use the minified version of your app. You can create a production build version to run the npm run build.
Stateful component: In react you can create a component with a state or without a state. The class component is a stateful component.
Stateless component: In react stateless components are popular at this time. This is also called hook based component or functional component.