react getting component html instead of function code example Example: react component example const element = <div />;