4 ms·
Components drawing themselves is a side effect, and components returning markup are pure functions of their state. One is a lot easier to unit test than the ot
by kpmah 11y ago
Components drawing themselves is a side effect, and components returning markup are pure functions of their state.
One is a lot easier to unit test than the other, for example.