update react 0.12, add support for second handle
allow arbitrary number of handles