Giter VIP home page Giter VIP logo

task_minimal's Introduction

Đây là dự án hỗ trợ mọi người hiểu sâu về react và dự án thực tế, clone minimal template.

  1. Init - Setup
    npm create vite@latest
    -> trong quá trình tạo thì có hỏi vài câu hỏi.
√ Project name: ... .
√ Package name: ... cloneminimal
√ Select a framework: » React
√ Select a variant: » TypeScript + SWC

npm i - tải node_modules
npm i prettier
npm i eslint-config-airbnb-typescript
npm run dev

git init
git status
git branch
git add README.md
git commit -m "#1 feat(readme.md) init project"
git log
git log --oneline
git remote add origin https://github.com/ ... sửa cái link này
git push -u origin master
git checkout -b dev
git push -u origin dev

Pattern: git commit -m "#IssueNumber feat/chore/config/fix (file? or folder?) mess"

feat - tạo cái gì đó mới.
chore - sửa cái gì đó.
config - setting cái gì đó.
fix - sửa lỗi nào rồi.

  • Tạo một pages
  • Tạo view của page, tạo view trong sections (của page nào thì tạo folder page đấy)
  • Thêm một router trong file main
  {
    element:(<MainLayout>
      <Suspense fallback={<>Loading</>}>
          <Outlet />
        </Suspense>
    </MainLayout>),
    children:[],
  }

dải mainRoutes vào trong useRoutes

...mainRoutes,

Box: The Box component serves as a wrapper component for most of the CSS utility needs. The Box component packages all the style functions that are exposed in @mui/system.

Stack: Stack is like a flex container. The Stack component manages layout of immediate children along the vertical or horizontal axis with optional spacing and/or dividers between each child.

Usage of Stack:

Stack is concerned with one-dimensional layouts, while Grid handles two-dimensional layouts. The default direction is column which stacks children vertically.

By default, Stack arranges items vertically in a column. However, the direction prop can be used to position items horizontally in a row as well.

Use the divider prop to insert an element between each child. This works particularly well with the Divider component.

You can switch the direction or spacing values based on the active breakpoint.

Ref: https://mui.com/components/stack/

The double not operator (!!) is simply the ! operator used twice. The first ! converts the operand to its boolean opposite, and the second ! flips it back. The result is a value that is explicitly either true or false.

"You can switch from m to motion (in the import and components) and everything works as expected. m isn't a 1:1 alias for motion, it's a slimmed-down version. If you want to use animations with the m component you'll need to import an additional "feature package" like domAnimation or domMax." detail

task_minimal's People

Contributors

kiongnguyen avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.