refine-sanity
v1.1.1
Published
Data provider for refine with sanity. refine is a React-based framework for building internal tools, rapidly. Sanity is headless CMS.
Downloads
602
Maintainers
Readme
refine-sanity
refine-sanity
is a data provider for Refine that enables seamless integration with Sanity. It simplifies the management of your Sanity data within Refine-powered React applications.
Installation
Install refine-sanity
via npm or yarn:
npm install @sanity/client refine-sanity
# or
yarn add @sanity/client refine-sanity
Usage
import dataProvider from "refine-sanity";
import { createClient } from "@sanity/client";
const client = createClient({
token: "EDITOR_SANITY_ACCESS_TOKEN",
projectId: "SANITY_PROJECT_ID",
dataset: "SANITY_DATASET"
});
const App = () => {
return (
<Refine
dataProvider={dataProvider(client)}
/* ... */
>
{/* ... */}
</Refine>
);
};
Documentation
- For more detailed information and usage, refer to the refine data provider documentation.
- Refer to documentation for more info about refine
- Step up to refine tutorials.