React - ttulka/technologies GitHub Wiki

npx create-react-app hello
import React from 'react';
import ReactDOM from 'react-dom';

const App = () => {

  const text = 'Hello, React!';

  return (
    <div style={{ fontSize: '3rem' }}>
      {text}
    </div>
  );
}

ReactDOM.render(
  <React.StrictMode>
    <App />
  </React.StrictMode>,
  document.getElementById('root')
);

React Hooks bring to function-based components features that used to be only accessible with class-based components (state and life-cycles).

⚠️ **GitHub.com Fallback** ⚠️