Skip to content

Commit 385cded

Browse files
fix: properly mark jsx and tsx code blocks (#31)
1 parent bad1478 commit 385cded

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/tutorials/create-dapp.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Now let's edit the main App file.
115115
]}>
116116
<TabItem value="ts">
117117

118-
```ts title="src/App.tsx"
118+
```tsx title="src/App.tsx"
119119
import React, { useState } from 'react'
120120
import './App.css'
121121
import { Bee } from '@ethersphere/bee-js'
@@ -164,7 +164,7 @@ export default App
164164
</TabItem>
165165
<TabItem value="js">
166166

167-
```js title="src/App.jsx"
167+
```jsx title="src/App.jsx"
168168
import React, { useState } from 'react'
169169
import './App.css'
170170
import { Bee } from '@ethersphere/bee-js'
@@ -257,7 +257,7 @@ At the bottom of the `App` function there is a JSX code with a header, simple fo
257257
]}>
258258
<TabItem value="ts">
259259

260-
```ts
260+
```tsx
261261
function App() {
262262
const [ file, setFile ] = useState<File | null>(null)
263263
const [ link, setLink ] = useState<string | null>(null)
@@ -282,7 +282,7 @@ function App() {
282282
</TabItem>
283283
<TabItem value="js">
284284

285-
```js
285+
```jsx
286286
function App() {
287287
const [ file, setFile ] = useState(null)
288288
const [ link, setLink ] = useState(null)

0 commit comments

Comments
 (0)