摘要:
getDerivedStateFromProps is lifecycle hook introduced with React 16.3 and intended as a replacement for componentWillReceiveProps. It is invoked after 阅读全文
摘要:
The function forwardRef allows us to extract a ref and pass it to its descendants. This is a powerful tool, but should be used with caution to avoid u 阅读全文
摘要:
By default, React Native only targets iPhone - so if you run on an iPad, it will show up as a scaled app, and won't look like a native iPad app. To ta 阅读全文
摘要:
For example you make a function to get rating; Then using it in html: These code actually casues the preformance issues, because everything Angualr's 阅读全文
摘要:
1. Installl latest @angular/cli: The version I used is:6.0.0-rc.10 2. Create a new application: 3. Install material and cdk packages: Here need to add 阅读全文
摘要:
The componentWillReceiveProps() method is being deprecated in future version of React (17). Many of us use this method day-to-day to check for incomin 阅读全文
摘要:
How to install Flask Use Flask to create a minimal website Build routes in Flask to respond to website endpoints Use Variable Rules to pass parts of t 阅读全文
摘要:
In this lesson I refactor a React component that utilizes a higher-order component for mutations to the new Mutation render prop component baked into 阅读全文
摘要:
Went though tow youtube videos about NGXS https://angularfirebase.com/lessons/ngxs-quick-start-angular-state-management/ https://www.youtube.com/watch 阅读全文