Skip to content

Commit

Permalink
docs: fixed a misspeled variable in the readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
ncpa0cpl committed Aug 3, 2022
1 parent 6dfaba8 commit 71e6964
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 @@ -112,11 +112,11 @@ Context Map is a interface provided to each functional component that provides a
```tsx
import { defineContext } from "jsxte";

const myContext = defineContext<{ foo: string }>();
const myContext = defineContext<{ label: string }>();

const App: JSXTE.Component = (props, contextMap) => {
// Set the context to a new value, all descendants of this component will have access to it
contextMap.set(myContext, { foo: "Hello" });
contextMap.set(myContext, { label: "Hello" });

return <Foo />;
};
Expand Down

0 comments on commit 71e6964

Please sign in to comment.