MCPcopy
hub / github.com/nefe/redux-in-chinese / Errors

Function Errors

website/src/pages/errors.js:9–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import 'url-search-params-polyfill'
8
9function Errors() {
10 const location = useLocation()
11 const context = useDocusaurusContext()
12 const { siteConfig = {} } = context
13 const errorCode = new URLSearchParams(location.search).get('code')
14 const error = errorCodes[errorCode]
15
16 return (
17 <Layout
18 title={`${siteConfig.title} - A predictable state container for JavaScript apps.`}
19 description="A predictable state container for JavaScript apps."
20 >
21 <main className={styles.mainFull}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected