Documentation Getting started API <state object> Machine.<api method> <action-handler> connect and disconnect Middlewares React integration examples