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

vllm : Failed to infer device type

android studio kotlin source is null error

gemini cli getting file not defined error