Open siddhs opened 5 years ago
Did you include the bootstrap stylesheet in index.html ?
up i download the project and make npm i ...I run it and display nothing ...
I integrate main files in tsx only the strings(item) is displayed and dont show pagination bar ...
I implemented this component in my application, but due to some unknown reason I am unable to render it on UI. I copied the Pagination.js code and then imported that into my SearchResultsPage.js. Here is the code for that. ` import React from "react"; import NavigationBar from "./NavigationBar"; import SearchPageResultsStyle from "../assets/css/SearchResultsPage.css" import Pagination from "./Pagination";
class SearchResultsPage extends React.Component{ constructor(props) { super(props); console.log("Printing in the results component: this.props.location.state.data.keyword") console.log(this.props.location.state.data.keyword) this.state = { results: this.props.location.state.data.results, keyword: this.props.location.state.data.keyword, pageOfItems: [] }; this.onChangePage = this.onChangePage.bind(this); }
}
export default SearchResultsPage;`
I have asked this question on stackoverflow as well.https://stackoverflow.com/questions/54080735/pagination-component-not-rendered-on-ui-react