This is a draft cheat sheet. It is a work in progress and is not finished yet.
React
What is the difference between <a> and <link> Tag? |
React
What is the difference between <a> and <link> Tag? |
what is JSX? |
when you are already in a route that matches what the Link points to. Say we are currently on /page and the Link points to /page or even /page/:id, this won't trigger a full page refresh while an <a /> tag naturally will |
Javscript Expressions. It also makes easier to create React components. JSX allows to put HTML in javascript. |
Programmatic Redirection in React Router |
It can be achieved by <Redirect/> Tag or history.push from the history library in React Router. When a component is rendered by the React Router three props are passed to the components location , History and match. In which history.push pushes a new route to the history stack aka routing the user to the new route. |
|
|
|
|
|