Setting a background image with React inline styleIt is quite tricky to use inline style CSS in React.May 17, 2021May 17, 2021
Use npm ‘react-material-ui-carousel’ in ReactI was thinking to build a “carousel effect” for photos on my personal website one day and I suddenly thought of Bootstrap carousel. I used…Apr 24, 20211Apr 24, 20211
Use npm ‘react-scroll’ in ReactSuppose that we have built a navbar in React using pure CSS, the next step is to make it more functional. For example, we have four links…Apr 24, 2021Apr 24, 2021
React sticky & scrollable navbarUsing Window.scrollY to detect whether the page is scrolled or not, then add the corresponding class name.Apr 23, 2021Apr 23, 2021