Log in Sign up
3 Matching Annotations
  1. Nov 2019
  2. gist.github.com gist.github.com
    A Standard and Naming Convention for Immutable Components
    1
    1. TylerRick 27 Nov 2019
      in Public
      Because immutable components also prevent their children from re-rendering, they should probably not have non-immutable children.
      rules/invariants makes it easier to spot mistakes
    Visit annotations in context

    Tags

    • rules/invariants
    • makes it easier to spot mistakes

    Annotators

    • TylerRick

    URL

    gist.github.com/710e904f6d300085309c41ffcfdabc38
  3. gist.github.com gist.github.com
    A Naming Convention for Null Components
    1
    1. TylerRick 27 Nov 2019
      in Public
      Null Components should never have children - they'd never be rendered.
      rules/invariants makes it easier to spot mistakes null component
    Visit annotations in context

    Tags

    • rules/invariants
    • makes it easier to spot mistakes
    • null component

    Annotators

    • TylerRick

    URL

    gist.github.com/52182ffa76075352bc80a51a729cd3d1
  4. gist.github.com gist.github.com
    A Naming Convention for Injector Components
    1
    1. TylerRick 27 Nov 2019
      in Public
      Injector components should never be self-closing, and they should never wrap multiple children. We can fix this at code-time and not wait for the errors at runtime.
      rules/invariants injector component makes it easier to spot mistakes
    Visit annotations in context

    Tags

    • rules/invariants
    • makes it easier to spot mistakes
    • injector component

    Annotators

    • TylerRick

    URL

    gist.github.com/1ceacfab149b5fdfb5095c2c0cf9c7f5
Share:
Group. Only group members will be able to view this annotation.
Only me. No one else will be able to view this annotation.
Hypothes.is
  • About
  • Blog
  • Bioscience
  • Education
  • Jobs
  • Help
  • Contact
  • Terms of Service
  • Privacy Policy