# Basic Usage Always prioritize using a supported framework over using the generated SDK directly. Supported frameworks simplify the developer experience and help ensure best practices are followed. ### React For each operation, there is a wrapper hook that can be used to call the operation. Here are all of the hooks that get generated: ```ts import { useListEvents, useCreateEvent } from '@dataconnect/generated/react'; // The types of these hooks are available in react/index.d.ts const { data, isPending, isSuccess, isError, error } = useListEvents(); const { data, isPending, isSuccess, isError, error } = useCreateEvent(createEventVars); ``` Here's an example from a different generated SDK: ```ts import { useListAllMovies } from '@dataconnect/generated/react'; function MyComponent() { const { isLoading, data, error } = useListAllMovies(); if(isLoading) { return