Giter Site home page Giter Site logo

docs's Introduction

0: library -universal-cookie -react-hook-form

1: props

  • attribute, destructuring
  • prop " key " đặc biệt
  • truyền hàm là callback
  • props là campalCase
  • khi nhiều props quá thì truyền nguyên 1 cục qua, đỡ xấu code
  • tranformer trong dự án lớn ( xem sau ) 2 : DOM envent
  • dùng function nào cũng được , miễn là dễ hiểu là được
  • là gì ? là click click : onClick = ()=> {} => nếu nó dài thì xuống dòng
  • UI k nên có logic
  • xử lý là handleClick
  • truyền function xong rồi lấy name truyền vào function đó trong component con 3: dynamic component
  • https://www.youtube.com/watch?v=5SU6P-cqoJw&t=626s
  • check ở đây logic in render
  • create function as component
  • Component phải viết hoa , const Component = object[value] để tránh báo lỗi 2:
  • đọc về reactNode, reactElement , JSX.Elememnt
  • https://blog.logrocket.com/using-react-children-prop-typescript/

docs's People

Contributors

hau1006 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.