Skip to content

Instantly share code, notes, and snippets.

@yoshuawuyts
Created January 8, 2018 13:58
Show Gist options
  • Save yoshuawuyts/b166ad57a81a87bba8e3b74f62f9f874 to your computer and use it in GitHub Desktop.
Save yoshuawuyts/b166ad57a81a87bba8e3b74f62f9f874 to your computer and use it in GitHub Desktop.

Nanocomponent Constraints

  • self-managing identity, because we can't embed inside diffing algo
  • identity check needs to be static, creating a new instance can't be the solution
  • LRU cache GC
  • one liner for creation + use
  • no imports for management
  • no singletons
  • no extensions of state if possible
  • allow access to global event bus
  • allow access to global state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment