1.0.32 • Published 2 years ago
@anibel/core v1.0.32
@anibel/core
API module for Anibel.Net
import YourApplication from "./Application";
import { withAnibelApi } from "@anibel/core";
const App = withAnibelApi(YourApplication, {
enviroment: "beta" | "production",
});
ReactDOM.render(<App />, document.getElementById("root");
Api Calls
import { api } from "@anibel/core";
const Component = () => {
const { data, loading, refetch } = api.media.getMediaList({
variables: {
mediaType: "anime",
offset: 0,
limit: 15,
},
});
return <div />;
};