前端项目实战壹佰叁拾捌react-admin+material ui-react-admin之Count之WithListContext之构建刷新按钮

我是歌谣 放弃很容易 但是坚持一定很酷 微信公众号关注前端小歌谣带你进入前端技术群

import { WithListContext } from 'react-admin'; 

const RefreshListButton = () => (
    <WithListContext render={({ refetch }) => (
        <button onClick={refetch}>Refresh</button>
    )} />
);

posted @ 2023-08-07 09:33  前端导师歌谣  阅读(5)  评论(0)    收藏  举报  来源