起こっている現象
- diffシンタックスハイライトを使用した際に、余分な改行が1行上に入る
現象が起こった時の記法
// diff jsx:src/App.js で指定
import React, { useState } from 'react';
import './App.css';
function App() {
const [count, setCount] = useState(0);
return (
<div className="App">
- HEY👋
+ <h1>Counter App 🧮</h1>
+ <button>
+ +
+ </button>
+ <h3>{count} times clicked!🖱</h3>
</div>
);
}
export default App;
反映結果

試したこと
起こっている現象
現象が起こった時の記法
反映結果
試したこと