Home > database >  Unable to apply Bootstrap5 sticky footer template in react js app
Unable to apply Bootstrap5 sticky footer template in react js app

Time:10-17

I am trying to apply the following template to my react.js app: enter image description here

Except for the div with "root" id is extra otherwise I am exactly imitating the bootstrap 5 example given above. However, the footer is not sticking to the bottom.

Looks like this: enter image description here

What am I doing wrong?

CodePudding user response:

Fixed it by removing the div with id root from index.html.

Changed the index.js to:

ReactDOM.render(
  <React.StrictMode>
    <App />
  </React.StrictMode>,
  document.body
);
  • Related