Encapsulate set configuration into abstract function.

Create function setReactConfiguration in react.dart to create
configuration by passed values of functions.