I am working on a react app with a bootstrap template. So far all my pages work well except for one page. When I click on a link to this page the template loads fine, when I refresh on this page I loose my bootstrap styling. The only thing different about this page from the […]
- Tags :employee, { Component } from 'react' export default class EmpoyeeShow extends Component { constructor() { super(); this.state = { empl, }; } componentDidMount() { const id = this.props.match.params.userId; console.log("this.props.match.params.userI, backgroundPosition: 'center'} const breadcrumb = { background: 'transparent' } return ( <div class=", backgroundSize: 'cover', I am working on a react app with a bootstrap template. So far all my pages work well except for one page. When I click on a link to this page, id) const response = await fetch(`/employees/`+ id) const initialUser = await response.json() const employees = initialUser, id) this.fetchEmployee(id) } fetchEmployee = async (id) => { console.log("id", this.props.match.params.userId) console.log("params", this.state.employees[0]) const employee = this.state.employees[0] this.setState({employee: employee}) } render() { const, when I refresh on this page I loose my bootstrap styling. The only thing different about this page from the others is its a show page that u