Anthony pfp
Anthony

@askorupskyy

There’s an ‘asChild’ pattern that I really like. You have a component that accepts generic props and a child. If you pass “asChild” nothing renders but the child component with props inherited from the parent. Looks something like this: <Button className=‘w-full’ asChild> <a href=‘/‘>Click here</a> </Button>
0 reply
0 recast
0 reaction