Buckets:
silverwolf-x/project / test /development /pages-dir /client-navigation /fixture /pages /async-props.js
| import React from 'react' | |
| export default class AsyncProps extends React.Component { | |
| static async getInitialProps() { | |
| return fetchData() | |
| } | |
| render() { | |
| return <p>{this.props.name}</p> | |
| } | |
| } | |
| function fetchData() { | |
| const p = new Promise((resolve) => { | |
| setTimeout(() => resolve({ name: 'Diego Milito' }), 10) | |
| }) | |
| return p | |
| } | |
Xet Storage Details
- Size:
- 344 Bytes
- Xet hash:
- bd423ee837cb3ff3b5629dd581e3de55fe0bde2d104fa4b29050e8cf8aa5244b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.