Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Latest commit

 

History

History
18 lines (13 loc) · 685 Bytes

DESIGN.md

File metadata and controls

18 lines (13 loc) · 685 Bytes

Design Concepts Behind UFS

State should be injectable.

By default, UFS' state lives in the upper-most UFS component. Generally, this component wraps a native view, like div (on the web) or View (on React Native). The child view is an implementation detail that largely doesn't concern this library.

However, while state lives in the root component by default, it is also injectable upon mount, using the context prop.

Binding Native Views

Native Inputs are often implemented as Controlled Components that are wrapped by a native Field component. This is clearly illustrated in ufs-dom.