Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 743 Bytes

Dummies.md

File metadata and controls

13 lines (10 loc) · 743 Bytes

Dummies

Dummies are empty "shell" components that don't contain the actual implementation. However, those dummies can be used as real React components and they will re-render automatically once they get implemented.

Essentially you can create dummies, which will not add any size to your bundle, use them, but implement them with real components only later when necessary.

  • mock() - dummy that can be implemented using .implement() method.
  • loadable() - dummy that can be loaded using .load() method.
  • lazy() - like loadable(), but also loads automatically when rendered for the first time.
  • delayed() - like lazy(), but its loading can be delayed.