src/js/components/status.js
/**
     * React to state changes and render the component's HTML
     *
     * @returns {void}
     */
React to state changes and render the component's HTML
@returns {void}
React to state changes and render the component ' s HTML @returns { void }
render() {
        console.log('rendering status')
        let self = this;
        let suffix = store.state.items.length !== 1 ? 's' : '';
        self.element.innerHTML = `${store.state.items.length} item${suffix}`;
    }
render ( ) { console . log ( 'rendering status' ) let self = this ; let suffix = store . state . items . length !== 1 ? 's' : '' ; self . element . innerHTML = ` ${ store . state . items . length } ${ suffix } ` ; }
React to state changes and render the component's HTML
 @returns {void}
React to state changes and render the component ' s HTML @returns { void }