Latest solutions
Latest comments
- @spiritoftime@spiritoftime
So i accidentally submitted without pasting my comments! This page was made using react, react-router as well as pure css, these are some stuff i have learnt:
- useEffect dependencies do not have to be inside the useEffect function, they can be added as a dependency as long as they are a closure variable
- useReducer requires a default state, if there is no default state there would be unlimited render error
- you can pass entire JSX elements into the props; i initially thought you had to make them a string and ended up having to use dompurify and setdangerouslyhtml
- the key prop cannot be destructured - it would return undefined
- @spiritoftime@spiritoftime
edit: i finally realised that setting overflow hidden on body was not going to do anything. setting it on the div worked! will be trying to make those course articles look the same tmr