useResourceData

Hook that returns Resource data. Accepts namespace string

useResourceData(namespace:string)
import { useResourceData } from '@cranium/resource'
function MyReactComponent () {
const { data, isLoading, errors, filters, options } = useResourceData('dogs')
}