Skip to content

Commit

Permalink
docs: fix typos in README
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Aug 10, 2023
1 parent a5fb211 commit 249231c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@ import { Puck } from "@measured/puck";

// Create puck component config
const config = {
HeadingBlock: {
fields: {
children: {
type: "text",
components: {
HeadingBlock: {
fields: {
children: {
type: "text",
},
},
render: ({ children }) => {
return <h1>{children}</h1>;
},
},
render: ({ children }) => {
return <h1>{children}</h1>;
},
},
};
Expand All @@ -39,7 +41,7 @@ const save = (data) => {};

// Render Puck editor
export function Editor() {
return <Puck config={config} data={data} onPublish={save} />;
return <Puck config={config} data={initialData} onPublish={save} />;
}
```

Expand Down

0 comments on commit 249231c

Please sign in to comment.