Showing posts with label Create React App. Show all posts
Showing posts with label Create React App. Show all posts

Monday, December 4, 2023

Hello Print

December 04, 2023 0





Index.js


import React from 'react';

import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';

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

App.js


function App() {
  return (
    <div>
      <h1>Hello Print</h1>
    </div>
  );
}

export default App;

Sunday, December 3, 2023

Create React App

December 03, 2023 0

 Create React App


1 :-        npx create-react-app my_app


              where  my_app is name of web application



2 :-         Enter App Location

                    cd my_app   



3:-            Start Developer Server

                                npm start