- Implement
Pagination
component<Pagination total={42} /* required */ perPage={5} /* optional with 5 by default */ page={1} /* optional with 1 by default */ />
- it should show buttons for all available pages. You may use this markup
- current page should be highlighted
- Implement
onPageChange
callback getting selected page as a param- should be triggered if only page was changed
Pagination
should work like a controlledinput
all the params are set from outside. So theApp
should listen to a callback and sets a changedpage
to thePagination
- Implement
prev
andnext
buttons- disable buttons if a move is not possible now
- Add an optional param
withInfo
to show extra info before the buttons (6 - 10 of 20
) - (*) Implement
<select>
(3, 5, 10, 20
) field to changeperPage
andonPerPageChange
callback- should be triggered if only
perPage
was changed
- should be triggered if only
- (*) Change view to show buttons only for the
first
,last
,current
, oneprecurrent
andpostcurrent
pages< 1 ... 4 [5] 6 ... 12 >
< [1] 2 ... 12 >
- Fork the repository with task
- Clone forked repository
git clone [email protected]:<user_name>/<task_repository>.git
- Run
npm install
to install dependencies. - Then develop
- Run
npm start
to start development server onhttp://localhost:3000
When you run server the command line window will no longer be available for writing commands until you stop server (ctrl + c
). All other commands you need to run in new command line window. - Follow HTML, CSS styleguide
- Follow the simplified JS styleguide
- run
npm run lint
to check code style - When you finished add correct
homepage
topackage.json
and runnpm run deploy
- Add links to your demo in readme.md.
[DEMO LINK](https://<your_account>.github.io/<repo_name>/)
- this will be a link to your index.html
- Commit and push all recent changes.
- Create
Pull Request
from forked repo(<branch_name>)
to original repo (master
). - Add a link at
PR
to Google Spreadsheets.
You should be writing your code in src/
directory.