I have a react component from which I send a PATCH request to a server
import React, { useState } from \'react\'; import { useHistory } from \'react-router-dom\';