Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Update README.adoc #134

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hypermedia/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ If you are deleting the last record on the last page, it will jump to the first

One way to see how hypermedia really shines is to update the page size. Spring Data REST fluidly updates the navigational links based on the page size.

There is an HTML element at the top of `ElementList.render`: `<input ref="pageSize" defaultValue={this.props.pageSize} onInput={this.handleInput}/>`.
There is an HTML element at the top of `EmployeeList.render`: `<input ref="pageSize" defaultValue={this.props.pageSize} onInput={this.handleInput}/>`.

* `ref="pageSize"` makes it easy to grab that element with `this.refs.pageSize`.
* `defaultValue` initializes it with the state's `pageSize`.
Expand Down