// Copyright 2017-2021 @axia-js/dev authors & contributors // SPDX-License-Identifier: Apache-2.0 import React from 'react'; interface Props { children: React.ReactNode; className?: string; label?: string; } function Child ({ children, className, label }: Props): React.ReactElement { return (
{label || ''}{children}
); } function Component ({ children, className, label }: Props): React.ReactElement { const bon = '123'; if (label === bon) { console.error('true'); } try { console.log('bon'); } catch (error) { // ignore; } console.log('1'); return (
{children} bob
); } export default React.memo(Component);