TS2339: Property 'value' does not exist on type 'Component<{}, {}, any>'. react renderer unit test
const title = getByPlaceholderText("test") as HTMLInputElement;
4.8
5
//If you want to get around this in not a type safe way and only if you are sure you are getting the values, try this.
const { valueX, valueY } = location.state as any
Thank you!
5
0
Are there any code examples left?
New code examples in category Javascript