react - typing component layout in its most simplest form

 Always keep on forgetting the syntax for this - create a component and apply typing for it.


export const StaticImage = ({ imageUrl}: {imageUrl : string}) => {
    return <Image
    src={imageUrl}
    alt=""
    width={500}
    height={500} />
}



Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm