From 752099e6b02a21b275c79ce50f282b40a37cca05 Mon Sep 17 00:00:00 2001 From: Acylation <73122375+Acylation@users.noreply.github.com> Date: Tue, 4 Apr 2023 02:35:20 +0800 Subject: [PATCH] Update getting-started/react.md modified type discription of createContext --- docs/getting-started/react.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started/react.md b/docs/getting-started/react.md index c7d22e9a..60d16ac6 100644 --- a/docs/getting-started/react.md +++ b/docs/getting-started/react.md @@ -110,7 +110,7 @@ Another alternative is to create a React context for the app to make it globally import * as React from "react"; import { App } from 'obsidian'; - export const AppContext = React.createContext(undefined); + export const AppContext = React.createContext(undefined); ``` 1. Wrap the `ReactView` with a context provider and pass the app as the value.