Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 861 Bytes

Dummies.md

File metadata and controls

16 lines (12 loc) · 861 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.
  • viewport() - postpones component's rendering until it is visible in viewport at least once.