Changing tables was broken because header state was not reset when changes occur
Changing tables was broken because header state was not reset when changes occur

My somewhat unorthodox state container was perhaps not the best idea.
Though using React state might have meant, that every th element created
would have altered component state and forced rerender.

Since this is just a prototype, handling external state inside a
component using closure (and also using jQuery for some events
and DOM changes) just has to suffice.

Anyways, changing tables and scrolling within seems to work,
and choosing headers does, too.

jussiarpalahti/rematrix,jussiarpalahti/rematrix,jussiarpalahti/rematrix,jussiarpalahti/rematrix