When
Overview​
- This component represents a condition to be satisfied.
- Its
childrenwill be rendered if thepredicatefunction returns a truthy value. - If you pass the
valueprop to its parent, it's going to be available as the first parameter of yourpredicatefunction. - It takes one type parameter: the shape of the
valueprop passed to its parent. Useful for type inference.