Skip to content

tsimons6/esri-ts-react

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React and TypeScript for Esri

Links

Notes

Controlled vs Uncontrolled components

updates:

  • Controlled components update on every interaction (keypress, click, etc.)
  • Uncontrolled components update when you tell them to (they need code to say WHEN they should update)

re-render:

  • Controlled component provoke re-rendering on every update because they're tied to state
  • Uncontrolled components may not even provoke re-rendering

external updates:

  • Controlled components can reflect updates to data other than from the form field
  • Uncontrolled components cannot reflect updates other than through user interactions (typing, clicking, etc.)

collecting data:

  • Controlled components are up-to-date
  • Data from uncontrolled components may be stale

About

React + TypeScript for Esri

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 94.0%
  • HTML 3.5%
  • JavaScript 2.4%
  • CSS 0.1%