private void UpdateRendering() { _list.Empty(); _itemTemplate.RenderTemplate(_todoList.Items).AppendTo(_list); _clearButton.SwitchClass("hidden", _todoList.CompletedCount == 0); _activeCount.Text(_todoList.ActiveCount + " item(s) left"); }