> For the complete documentation index, see [llms.txt](https://shenjunhong.gitbook.io/blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shenjunhong.gitbook.io/blog/yuan-ma/react.md).

# React

- [核心知识点](https://shenjunhong.gitbook.io/blog/yuan-ma/react/react-yuan-ma-fen-xi-zhi-ru-kou-he-you-hua.md)
- [errorBoundaries](https://shenjunhong.gitbook.io/blog/yuan-ma/react/errorboundaries.md)
- [immutable.js 的实现原理](https://shenjunhong.gitbook.io/blog/yuan-ma/react/immutable.js-de-shi-xian-yuan-li.md)
- [React.Suspense](https://shenjunhong.gitbook.io/blog/yuan-ma/react/react-yuan-ma-fen-xi-zhi-suspense.md)
- [react源码分析之Fiber](https://shenjunhong.gitbook.io/blog/yuan-ma/react/react-yuan-ma-fen-xi-zhi-fiber.md)
- [batchedUpdate](https://shenjunhong.gitbook.io/blog/yuan-ma/react/react-yuan-ma-fen-xi-zhi-batchedupdate.md)
- [Component](https://shenjunhong.gitbook.io/blog/yuan-ma/react/react-yuan-ma-fen-xi-zhi-component.md)
- [Context](https://shenjunhong.gitbook.io/blog/yuan-ma/react/react-yuan-ma-fen-xi-zhi-context.md)
- [react 源码分析之 diff 算法](https://shenjunhong.gitbook.io/blog/yuan-ma/react/react-yuan-ma-fen-xi-zhi-diff-suan-fa.md)
- [React 中的 key 属性：原理、使用场景与注意事项](https://shenjunhong.gitbook.io/blog/yuan-ma/react/react-yuan-ma-fen-xi-zhi-key.md)
- [使用方式](https://shenjunhong.gitbook.io/blog/yuan-ma/react/react-yuan-ma-fen-xi-zhi-lazy.md)
- [react源码分析之memo](https://shenjunhong.gitbook.io/blog/yuan-ma/react/react-yuan-ma-fen-xi-zhi-memo.md)
- [react 源码分析之mixin](https://shenjunhong.gitbook.io/blog/yuan-ma/react/react-yuan-ma-fen-xi-zhi-mixin.md)
- [实战篇](https://shenjunhong.gitbook.io/blog/yuan-ma/react/react-yuan-ma-fen-xi-zhi-portals.md)
- [react源码分析之react-dom](https://shenjunhong.gitbook.io/blog/yuan-ma/react/react-yuan-ma-fen-xi-zhi-reactdom.md)
- [使用方式](https://shenjunhong.gitbook.io/blog/yuan-ma/react/react-yuan-ma-fen-xi-zhi-ref.md)
- [scheduleWork](https://shenjunhong.gitbook.io/blog/yuan-ma/react/schedulework.md)
- [useImperativeHandle的使用与原理](https://shenjunhong.gitbook.io/blog/yuan-ma/react/useimperativehandle-de-shi-yong-yu-yuan-li.md)
- [React 书写小技巧](https://shenjunhong.gitbook.io/blog/yuan-ma/react/shu-xie-ji-qiao.md)
- [入口和优化](https://shenjunhong.gitbook.io/blog/yuan-ma/react/ru-kou-he-you-hua.md)
- [合成事件和原生事件的区别](https://shenjunhong.gitbook.io/blog/yuan-ma/react/he-cheng-shi-jian.md)
- [react 性能优化](https://shenjunhong.gitbook.io/blog/yuan-ma/react/xing-neng-you-hua-fang-an.md)
- [构建一个 hooks](https://shenjunhong.gitbook.io/blog/yuan-ma/react/gou-jian-yi-ge-hooks.md)
- [浅析 styled-components](https://shenjunhong.gitbook.io/blog/yuan-ma/react/qian-xi-styledcomponents.md)
- [生命周期](https://shenjunhong.gitbook.io/blog/yuan-ma/react/sheng-ming-zhou-qi.md)
- [组合 vs 继承](https://shenjunhong.gitbook.io/blog/yuan-ma/react/zu-he-vs-ji-cheng.md)
- [通信机制](https://shenjunhong.gitbook.io/blog/yuan-ma/react/tong-xin-ji-zhi.md)
- [高阶组件](https://shenjunhong.gitbook.io/blog/yuan-ma/react/gao-jie-zu-jian.md)
- [慕课网](https://shenjunhong.gitbook.io/blog/yuan-ma/react/mu-ke-wang.md)
- [应用篇](https://shenjunhong.gitbook.io/blog/yuan-ma/react/mu-ke-wang/react-yuan-ma-fen-xi-zhi-reactelement.md)
- [课程导学](https://shenjunhong.gitbook.io/blog/yuan-ma/react/mu-ke-wang/ke-cheng-dao-xue.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://shenjunhong.gitbook.io/blog/yuan-ma/react.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
