Skip to content

Commit c076399

Browse files
authored
Update README.md
1 parent bad35be commit c076399

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

README.md

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,15 @@
3636
3737
👉 [Usage](#usage) | [API](#api) | [Setup](#setup) | [SSR](#ssr) | [CCS](#css) [Concurrent loading](#concurrent-loading) | [Webpack/Parcel](#bundler-integration)
3838

39-
39+
| Library | Suspense | SSR | Hooks | Library | Non-modules | import(`./${value}`) |
40+
| ------------- | :-----: | :-----: | :-----: | :-----: | :-----: | :-----: |
41+
| React.lazy||||||
42+
| react-loadable |||||||
43+
| @loadable/component |||||||
44+
| imported-component |||||||
45+
46+
> Read more abotu [what this table displays](#comparisonLegend)
47+
4048
Key features:
4149
- 1️⃣ Single source of truth - your __bundler drives__ everything
4250
- 📖 __library__ level code __splitting__
@@ -83,15 +91,6 @@ Key features:
8391

8492
<a name="usage"/>
8593

86-
87-
| Library | Suspense | SSR | Hooks | Library splitting | Non-modules | import(`./${value}`) |
88-
| ------------- | ----- | ----- | ----- | ----- | ----- | ----- |
89-
| React.lazy||||||
90-
| react-loadable |||||||
91-
| @loadable/component |||||||
92-
| imported-component |||||||
93-
94-
9594
# Usage
9695

9796
## Server side
@@ -654,6 +653,16 @@ state loss if `lazy` is created not in the user space. At it would be created in
654653

655654
If React-Hot-Loader is detected `lazy` switches to `imported async` mode, this behaves absolutely the same.
656655

656+
<a name="comparisonLegend" />
657+
### Comparison table legend
658+
- Library - the library name
659+
- Suspense - does it support Suspense feature
660+
- SSR - does it support SSR
661+
- Hooks - does it have hooks API
662+
- Library - does it support _library_, not Component level splitting
663+
- Non-modules - could it "import" generic promise, not a real dynamic module import
664+
- import(`./${value}`) - does it support a full dynamic import
665+
657666
## Other loaders
658667
Another loaders exists, and the only difference is in API, and how they manage (or not manage) SSR.
659668

0 commit comments

Comments
 (0)