Coursera 笔记

Module 03 · In-depth Understanding of Advanced React Functionality深入理解 React 高级功能

Lesson 1 Summary: Hooks and Form Management in React第 1 课总结:React 中的 Hook 与表单管理

Coursera ↗

Congratulations! You have completed this lesson. At this point in the course, you know that:
恭喜!你已经完成了这个课程。在这个课程阶段,你知道:

  • The useEffect hook in React enables the execution of side effects within functional components. In React's useEffect hook, dependencies refer to variables or values that determine when useEffect should run.
    React 中的 useEffect 钩子使函数组件内执行副作用成为可能。在 React 的 useEffect 钩子中,依赖项指的是决定 useEffect 何时运行的变量或值。
  • Custom hooks allow you to abstract complex logic and easily reuse it across different components in your application.
    自定义钩子允许您将复杂逻辑抽象化,并轻松地在应用程序的不同组件之间重用它。
  • External services are any program, platform, or infrastructure your application uses to connect to and work with other applications over a network.
    外部服务是指您的应用程序用于通过网络连接和与其他应用程序协同工作的任何程序、平台或基础设施。
  • APIs enable you to acquire data, execute operations, or add extra features to your application.
    APIs 使您能够获取数据、执行操作或为您的应用程序添加额外功能。
  • Within React, components typically manage form data.
    在 React 中,组件通常管理表单数据。
  • React inputs are classified into two categories: controlled and uncontrolled. In uncontrolled input, React puts the value on the page, and the browser keeps track of the rest. Controlled inputs, require you to write the code to manage the value explicitly.
    React 输入分为两类:受控和非受控。在非受控输入中,React 将值放在页面上,浏览器跟踪其余部分。受控输入需要你编写代码来显式管理值。
  • Access control methods are frameworks for regulating access to physical or digital resources. There are two types of access control methods: traditional and innovative.
    访问控制方法是为调节对物理或数字资源的访问而建立的框架。访问控制方法有两种类型:传统和创新。