Global

Methods

A function to return a navbar element.

To simplify this code, we use objetc destructuring, to avoid using this.props, but just totalCounters.
Source:
See:
Returns:
a <nav> tag with the total of non-zero counters.
Type
HTMLElement

Type Definitions

state_setter()

Add the new configuration (a new set of counters) to state.

counters: Array
[
   {id: 1, value: 3},
   {id: 2, value: 0},
   {id: 3, value: 7},
   {id: 4, value: 0}
] (4) = $2
When you call setState in a component, React automatically updates the child components inside of it too.
Source:
See: