React, JavaScript, Architecture.
import App from './App'; ReactDOM.render(<App />, document.getElementById('root')); // src/App.js import React, { useState, useEffect } from 'react'; function App() { const [data, setData] = useState(null); useEffect(() => { fetch('/api/data') .then(response => response.json()) .then(data =>