have setState work with key, value along with an object

This fixes #175 if you're willing to accept it. I'm not sure if that's the best way to document it and I'll gladly make any fixes you want to get it in. :)

This change makes it easier to work with React's API when key is generated programmatically.