rtlToken top-level constant

OpaqueToken<Object> const rtlToken

Annotation bound to a boolean which is used to indicate that a complete web page is RTL.

This is used to only read the DOM once for an app to determine if the app itself is RTL. Only use this for components whose RTL is not independent of the application as a whole.

Implementation

const rtlToken = OpaqueToken('isRtl');