24
loading...
This website collects cookies to deliver better user experience
export function DisplayTitle({ title = 'Hello' }) {
return (
<div>
<H2>{title}</H2>
</div>
);
}
DisplayTitle.propTypes = {
title: PropTypes.string.isRequired
};
export type DisplayTitleProps = {
title: string
};
export function DisplayTitle({ title = 'Hello' }: DisplayTitleProps) {
return (
<div>
<H2>{title}</H2>
</div>
);
}
Warning: Failed prop type: Invalid prop `id` of type `string` supplied to `sum,` expected `number.`
For more posts like this follow me on LinkedIn
I work as frontend & content developer for Bit - a toolchain for component-driven development (Forget monolithic apps and distribute to component-driven software).