how to print the component in react code example Example: react print npm install react-print # yarn yarn add react-print