Take a look at Tree Shaking for more details. This may also become relevant when using module bundler such as Webpack, so your bundler will only import the required dependencies and it may result in a smaller bundle (AKA your app loads faster). lazy: experimental Lazy load async code and mark a tree as ready/not ready accordingly.This is basically syntactic sugar: import React, from 'react'.Suspense: experimental Allows to display fallback content in case the tree is not ready.Portals: Continues rendering the current tree into a different DOM container. ![]() forwardRef: Supply a ref to a specified child component.memo: Similar in spirit to PureComponent but allows to use a custom comparison function. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |