3 ms·
So let's say that that's a component that displays a user's username - how do you make sure that its view is always up-to-date, whether the user is logged in, l
by Vinnl 8y ago
So let's say that that's a component that displays a user's username - how do you make sure that its view is always up-to-date, whether the user is logged in, logged out, or another user's logged in?
Virtual DOM is not just about componentWill/DidMount/UnMount. It's when updating the view when a component's inputs (props) change that Virtual DOM shines.