реагировать переменную вставьте в строку

import React from 'react';
import ReactDOM from 'react-dom';
const text = 'world';

const App = () => {
  return (
    <div>
	  {/*1. Using template literals and ${expression}*/}
      	{`Hello ${text}`}

	  {/*2. Concatenating variable and string*/}
 		{'Hello ' + text}
    </div>
  );
};

const root = document.querySelector('#root');
ReactDOM.render(<App />, root );
abdelghanyMh