acdlite / recompose

A React utility belt for function components and higher-order components.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about branch

AleksOrl opened this issue · comments

What is the better:
branch(predicate, renderComponent(Comp1), renderComponent(Comp2))(null);
or
branch(predicate, renderComponent(Comp1))(Comp2);