created react root component that holds the state