const quizs = await (await fetch('http://localhost:3004/quizs?_embed=texts')).json()
this.setState({ quizs })
}
App.js:13 GET http://localhost:3004/quizs?_embed=texts net::ERR_CONNECTION_REFUSED
componentDidMount @ App.js:13
commitLifeCycles @ react-dom.development.js:19847
commitLayoutEffects @ react-dom.development.js:22834
callCallback @ react-dom.development.js:188
invokeGuardedCallbackDev @ react-dom.development.js:237
invokeGuardedCallback @ react-dom.development.js:292
commitRootImpl @ react-dom.development.js:22572
unstable_runWithPriority @ scheduler.development.js:653
runWithPriority$1 @ react-dom.development.js:11061
commitRoot @ react-dom.development.js:22412
finishSyncRender @ react-dom.development.js:21838
performSyncWorkOnRoot @ react-dom.development.js:21824
scheduleUpdateOnFiber @ react-dom.development.js:21219
updateContainer @ react-dom.development.js:24407
(anonymous) @ react-dom.development.js:24792
unbatchedUpdates @ react-dom.development.js:21934
legacyRenderSubtreeIntoContainer @ react-dom.development.js:24791
render @ react-dom.development.js:24874
./src/index.js @ index.js:5
webpack_require @ bootstrap:785
fn @ bootstrap:150
1 @ index.js:5
webpack_require @ bootstrap:785
checkDeferredModules @ bootstrap:45
webpackJsonpCallback @ bootstrap:32
(anonymous) @ main.chunk.js:1
App.js:16 Uncaught (in promise) TypeError: Failed to fetch
Потому что ERR_CONNECTION_REFUSED
Обсуждают сегодня