-
react-next pagination 구현WEB/react 2019. 8. 22. 11:46728x90
db: sequelize 2,
first.
- dispatching load request
second.
- load posts with axios using query like
axios.get(`api/post/${postId}?offet=${offset}&limit=&{limit})`
third.
- load posts with offset and limits like
db.Post.findAll({where: {id: req.params.id}, limit : req.query.limit,offset: req.query.offset})
'WEB > react' 카테고리의 다른 글
react - next 프레임워크를 활용해 ssr(server side rendering) 간단히 해결 (0) 2019.08.20 - dispatching load request