Courses

React.js + Laravel: SPA CRUD with Auth

Filtering Posts By Category Dropdown

Previous: Category API Endpoint and Show Category in Posts Table
avatar

Pagination does not retain the category, so I added ...this.state.query to the query object when setting the state in pageChanged().

query: {
		...this.state.query,
		page: fullUrl.searchParams.get('page'),
}
👍 1
avatar
You can use Markdown
avatar
You can use Markdown