Use React element factory to instantiate component. Closes #46