From 72c17f9dde3b49411d005e84b158eb0a2bcace89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Thu, 18 Mar 2021 23:47:15 +0100 Subject: [PATCH] improve syntax highlighting for react docs --- docs/src/docPages/installation/react.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/docPages/installation/react.md b/docs/src/docPages/installation/react.md index 1bdb2f3e..7d25d9d5 100644 --- a/docs/src/docPages/installation/react.md +++ b/docs/src/docPages/installation/react.md @@ -40,7 +40,7 @@ To actually start using tiptap, you’ll need to add a new component to your app This is the fastest way to get tiptap up and running with Vue. It will give you a very basic version of tiptap, without any buttons. No worries, you will be able to add more functionality soon. -```js +```jsx import { useEditor, EditorContent } from '@tiptap/react' import { defaultExtensions } from '@tiptap/starter-kit' @@ -61,7 +61,7 @@ export default Tiptap ## 4. Add it to your app Now, let’s replace the content of `src/App.js` with the following example code to use our new `Tiptap` component in our app. -```js +```jsx import Tiptap from './Tiptap.jsx' const App = () => {