Skip to content
Products
Agent
Design
Databases
Publish Apps
Security
Integrations
Mobile
For Work
Teams
Replit for teams to build together
Enterprise
Replit with Enterprise-grade security & controls
Use Cases
Business Apps
Mobile Apps
Rapid Prototyping
Roles
Enterprise
PM
Designers
Operations
Software Developers
Small Businesses
SMB Owners
Founders
Resources
Documentation
Community
Expert Network
Customer Stories
Gallery
Blog
News
Pricing
Careers
Contact sales
Log in
Create account
Products
Agent
Design
Databases
Publish Apps
Security
Integrations
Mobile
For Work
Teams
Replit for teams to build together
Enterprise
Replit with Enterprise-grade security & controls
Use Cases
Business Apps
Mobile Apps
Rapid Prototyping
Roles
Enterprise
PM
Designers
Operations
Software Developers
Small Businesses
SMB Owners
Founders
Resources
Documentation
Community
Expert Network
Customer Stories
Gallery
Blog
News
Pricing
Careers
Contact sales
Log in
Create account
whereIsRerenderComeFrom
Created by
LI
liuqinh2s1
用 react 的过程中遇到一个需求:子组件渲染的时候,需要知道是父组件发起的,还是子组件自身发起的渲染。如果是父组件发起的,就用父组件传过来的数据,如果是子组件发起的,就用子组件自身的数据。
Remix this app
0