react using component in component code example Example: react component example const element = <div />;