Week 08: Client-side routing, React forms Petr Wehrenberg Outline Routing Introduction to client-side routing Routes definition Links and NavLinks Code splitting and lazy loading Forms Controlled and uncontrolled inputs Basic form definition Form validation Form array fields What is routing, and why do we need it? UX problem #1 Hey, look at these excellent products! https://eshop.com https://eshop.com/products #2 Click and find all completed tasks! https://todo.com https://todo.com/tasks?filter=status~eq~completed #3 Situation: The user clicks in the browser to go back, and nothing happens. DX problem How can we handle more pages in our app? const App: FC = () => { const [currentPage, setCurrectPage] = useState("homepage"); return (