MCPcopy Create free account
hub / github.com/dabbott/react-native-express / requireModule

Function requireModule

components/SectionSlideshow.tsx:8–10  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

6const guidebook: TreeNode = require('../guidebook-en')
7
8function requireModule(id: string) {
9 return require('!!babel-loader!spectacle-mdx-loader!../pages/' + id + '.mdx')
10}
11
12export default ({ sectionName }: { sectionName: string }) => {
13 const root = findNodeBySlug(guidebook, sectionName)!

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected