improve syntax highlighting for react docs

This commit is contained in:
Philipp Kühn 2021-03-18 23:47:15 +01:00
parent e1df758b94
commit 72c17f9dde

View File

@ -40,7 +40,7 @@ To actually start using tiptap, youll 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. 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 { useEditor, EditorContent } from '@tiptap/react'
import { defaultExtensions } from '@tiptap/starter-kit' import { defaultExtensions } from '@tiptap/starter-kit'
@ -61,7 +61,7 @@ export default Tiptap
## 4. Add it to your app ## 4. Add it to your app
Now, lets replace the content of `src/App.js` with the following example code to use our new `Tiptap` component in our app. Now, lets 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' import Tiptap from './Tiptap.jsx'
const App = () => { const App = () => {