From 71e69646ac75d58f18e1979508dc3481c7ad4c0e Mon Sep 17 00:00:00 2001 From: ncpa0cpl Date: Wed, 3 Aug 2022 16:42:06 +0200 Subject: [PATCH] docs: fixed a misspeled variable in the readme example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a9a2e28..18b06d6 100644 --- a/README.md +++ b/README.md @@ -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 ; };