— 1 minute read

Conventions permalink

  • One-way data flow
  • Single state obj
  • setState
  • render
  • handleEvent

Patterns permalink

Display loading indicator until child component(s) have rendered permalink

  • Include child loading indicator component (render until data is loaded)
  • For web, use CSS to hide loading indicator component if is not the only child:
.parent .loading-component:not(:only-child) {
display: none;