Page cover
For the complete documentation index, see llms.txt. This page is also available as Markdown.

React

01. Getting Started

## ------------------| Create 
npm init react-app myapp
cd myapp
npm start

## ------------------| Deploy to production
npm run build

02. React Hooks

import React, { useState } from 'react';

function App() {
  const [value, setValue] = useState("This is initial value");

  return (
    <div>
      <button onClick={() => setValue("Value changed")}>Default</button>
      <h1>{value}</h1>
    </div>
  );
}

export default App;

03. Back-End Integration

  • Fetching data from backend when page loads

  • Submitting data to backend

04. Create first app.

04.1 Setup environment

04.2 Create my FirstProject

  • Inside the styles.js

  • Login.js

  • App.js

04.3 Generate release apk file.

05. Useful packages

Last updated