3 ms·
> In React, your component can fit within a single file Furthermore, a lambda local to a function can be a full-blown component (visible in DevTools etc.). So
by branko_d 5y ago
> In React, your component can fit within a single file
Furthermore, a lambda local to a function can be a full-blown component (visible in DevTools etc.).
So if you need a component that is used in only one other component, you can neatly encapsulate it and make it invisible from the outside, which can be useful on occasion.