Count: {state.count}
Current theme: {theme}
Current object: {object.kind}
Value: {value}
> ); } ``` ## Useful Types {/*useful-types*/} There is quite an expansive set of types which come from the `@types/react` package, it is worth a read when you feel comfortable with how React and TypeScript interact. You can find them [in React's folder in DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts). We will cover a few of the more common types here. ### DOM Events {/*typing-dom-events*/} When working with DOM events in React, the type of the event can often be inferred from the event handler. However, when you want to extract a function to be passed to an event handler, you will need to explicitly set the type of the event.Value: {value}
> ); } ``` ```js src/App.js hidden import AppTSX from "./App.tsx"; export default App = AppTSX; ```