how to create a reaction application