Dynamic subview layout for React