This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /****************************************************** | |
| * PATTERN LAB NODE | |
| * EDITION-NODE-GULP | |
| * The gulp wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets. | |
| ******************************************************/ | |
| var gulp = require('gulp'), | |
| path = require('path'), | |
| browserSync = require('browser-sync').create(), | |
| sass = require('gulp-sass'), | |
| concat = require('gulp-concat'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Breadcrumbs> | |
| <Breadcrumb text="Home" href="/" /> | |
| <Breadcrumb text="Child" href="/child" /> | |
| <Breadcrumb text="Grandchild" href="/child/grandchild" /> | |
| </Breadcrumbs> | |
| // or | |
| <Breadcrumbs items={[ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const DynamicComponent = React.lazy(() => | |
| import(`path/to/${reactComponentName}`) | |
| ); | |
| return ( | |
| //This works, but now how to I crawl in and grab its properties and PropTypes? | |
| <Suspense fallback={<div>Loading...</div>}> | |
| <DynamicComponent title="Lazy loaded component" /> | |
| </Suspense> | |
| ) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer