addView

open fun addView(child: View)
open fun addView(child: View, index: Int)
open fun addView(child: View, index: Int, params: ViewGroup.LayoutParams)

Deprecated

Litho handles adding/removing views automatically using mount/unmount calls. Manually adding/ removing views will mess up Litho's bookkeeping of added views and cause weird crashes down the line.