React Simple Code Editor

A simple no-frills code editor with syntax highlighting.

1import React from 'react';
2
3function App() {
4 const [count, setCount] = useState(0);
5
6 return (
7 <div>
8 <h1>Counter: {count}</h1>
9 <button onClick={() => setCount(count + 1)}>
10 Increment
11 </button>
12 </div>
13 );
14}
15
16export default App;