IntrinsicAttributes Error for Invalid Props
<Button onClick={() => setX(true)}>X</Button>
Type '{ children: ReactNode; onClick: () => void; }' is not assignable to type 'IntrinsicAttributes & RefAttributes<any> & Pick<RefAttributes<any>, never> & { theme?: object | undefined; } & { ...; }'.
Property 'onClick' does not exist on type 'IntrinsicAttributes & RefAttributes<any> & Pick<RefAttributes<any>, never> & { theme?: object | undefined; } & { ...; }'.
This is suggesting that your props are not validating in TypeScript.
Property 'onClick' does not exist on type 'IntrinsicAttributes...
Setting the props types on the React Component for the invalid props should resolve this.
DJP: A plugin system for Django
DJP is a new plugin mechanism for Django, built on top of Pluggy. I announced the first version of DJP during my talk yesterday at DjangoCon US 2024, How to design and implement extensible software with plugins. I'll post a full write-up of that talk …
by
Simon Willison's Weblog: Entries
September 25, 2024
Status update, September 2024
Once again, this status update will be rather short due to limited time
bandwidth. I hope to be able to allocate a bit more time slots for my
open-source projects next month.
We’re getting closer to a new Sway release (fingers crossed), with lots of help
by
emersion
September 20, 2024
How good can you be at Codenames without knowing any words?
About eight years ago, I was playing a game of Codenames where the game state was such that our team would almost certainly lose if we didn't correctly guess all of our remaining words on our turn. From the given clue, we were unable to do this. Altho…
by
danluu.com
August 11, 2024
Generated by
Open Ring