npm.io
4.0.5 • Published 4 years ago

@component-controls/react-router-integration

Licence
MIT
Version
4.0.5
Deps
13
Size
27 kB
Vulns
0
Weekly
0
Stars
82

Table of contents

In action

Live site

Overview

react-router integration plugin for webpack sites documenting your projects with component controls

  • Exports list of routes with their components.
  • Exports post-build routine to generate sitemaps and search indexes.

Getting started with webpack

API

ControlsPage

function

defined in @component-controls/react-router-integration/integrations/react-router-integration/src/index.tsx

parameters

Name Type
props*
Omit
type: "story" | "blog" | "page" | "tags" | "author" | string
docId: string
storyId: string
lastModified: string
docIndex: boolean
query: string
category: string
activeTab: string
userData: Record<string, any>
returns
FC<>
propTypes: WeakValidationMap<> | undefined
contextTypes: ValidationMap<> | undefined
defaultProps: Partial<P> | undefined
displayName: string | undefined

useRoutes

function

defined in @component-controls/react-router-integration/integrations/react-router-integration/src/index.tsx

parameters

Name Type
returns (ReactElement<>)[]

Keywords