|
Download wp-calypso/client/reader/update-notice/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 540 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/reader/update-notice/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/reader/update-notice/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/reader/update-notice/README.md
540 Bytes
Reader Update Notice
A little pill that is used to notify the user when new posts are available.
Usage
import UpdateNotice from 'calypso/reader/update-notice';
class MyComponent extends React.Component {
constructor() {
super();
this.handleNoticeClick = function () {
/* do something */
};
}
render() {
return <UpdateNotice count={ 5 } onClick={ this.handleNoticeClick } />;
}
}
Props
count- the number of updates that are availableonClick- a callback to call when the notice is cliced on