Skip to content

Commit

Permalink
fix arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
ricokahler committed Dec 17, 2020
1 parent 015d9ab commit 1eff0bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ At the root, add a `.babelrc` file that contains the following:
import { createDataHook } from 'next-data-hooks';

// this context is the GetStaticPropsContext from 'next'
// 👇
// 👇
const useBlogPost = createDataHook('BlogPost', async (context) => {
const slug = context.params?.slug as string;

Expand Down Expand Up @@ -127,7 +127,7 @@ export const getStaticProps: GetStaticProps = async (context) => {
context,
// this is an array of all data hooks from the `dataHooks`
// static prop. there can be more than one
// 👇👇👇
// 👇👇👇
dataHooks: BlogPostComponent.dataHooks,
});

Expand Down

0 comments on commit 1eff0bc

Please sign in to comment.