Did you read this topic?
Also this example can guide you. Feel free to ask more on the @ic-reactor/react topic.