setupProxy.js path are not recognizing in reactjs application using http proxy middleware
问题 I am implementing http proxy middleware in my react app , my setupProxy.js path's are not recognising . Below is my code please let me know if i am doing anything wrong. App component class App extends React.Component { test = () => { // I dont have any thing which is running in "/api" // Simply called fetch with "/api" because setupPorxy.js is looking my request or not fetch("/api") .then(res => { alert('test pri') console.log('res', res) }) } render() { return ( <div className="App">