Jest encountered an unexpected token?When I tried to use Jest to test my react component, an error occurred. Then I googled and looked for answer in stackoverflow. Took me hours of searching and finally I solved it. Below is how I solved it. Install "@babel/plugin-transform-modules-co...Oct 1, 2022·1 min read
How to have "Anchor Jumping" in React Router?In HTML, it is easy to jump to specific section by simply adding {id} to that specific section and {#id} to the href. <a href='#specific'>link</a> <section id='specific'>This is the section!</h1> Unfortunately, this method does not work in React Rout...Jun 16, 2022·2 min read