import {type CurrentUser, useCurrentUser} from '@sanity/sdk-react' import './ExampleComponent.css' export function ExampleComponent() { const user: CurrentUser | null = useCurrentUser() return (
This is an example component. You can replace this with your own content by creating a new component and importing it in App.tsx.
Quick tip: Create new components in separate files and import them like this in App.tsx / App.jsx:
{`import {YourComponent} from './YourComponent'
// Then use it in your JSX
`}