add react as component and directive