exapmle_reducer_javascript this is very simple example to use reducer in javascript #you can change and track the state using an input