Suppose you have a function or a class, or any single identity of your code, that should have a single responsibility. Let's understand by using below example: import React from 'react'; import { useRouteError } from 'react-router-dom'; const Error ...