diff --git a/content/blog/2024-10-01-holo.md b/content/blog/2024-10-01-holo.md index 638575f..ef8a1c7 100644 --- a/content/blog/2024-10-01-holo.md +++ b/content/blog/2024-10-01-holo.md @@ -86,7 +86,7 @@ title = "3Dホログラムを作った" } ``` -```tsx:src/pages/time.tsx +```ts:src/pages/time.tsx import React, { useState, useEffect } from 'react'; //function reverseString(str: string): string { @@ -126,7 +126,7 @@ const ScreenTimeCanvas: React.FC = () => { export default ScreenTimeCanvas; ``` -```tsx:src/pages/vrm.tsx +```ts:src/pages/vrm.tsx import * as THREE from 'three' import React, { useState, useEffect, useRef } from 'react'; import { OrbitControls } from '@react-three/drei' @@ -205,7 +205,7 @@ export const VRMModelCanvas = () => { export default VRMModelCanvas; ``` -```tsx:src/App.tsx +```ts:src/App.tsx import React from 'react' import VRMModelCanvas from './pages/vrm' import ScreenTimeCanvas from './pages/time'