Site275 Documents

Api Derived Data

Keep clients as thin as possible by having the API calculate all required derived values. For example, never evaluate arrayVariable.length > 0 in client code. Instead, the API must provide a corresponding hasX boolean for conditional rendering, such as hasX && <Component />.