React Router navigation is handled through the Link component. The Link replaces the old fashioned anchor tag and has a number of optional properties. One of them is the "replace" property, which changes the behaviour of the browsers back button. With this property the page is completely removed from the users history and a back will send the user back two links instead of one. This is useful for things like a login screen, where if a user logs in and then clicks the back arrow they should be sent back to the home page instead of back to the login screen. Another property is the reloadDocument property, which reloads the entire page like a traditional HTML anchor tag. The state property allows you to pass state data along your link which importantly is not in the apps URL.
Subscribe to:
Post Comments (Atom)
190: Sablier
The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...
-
The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...
-
The ZKasino project recently exit scammed over 33 million dollars worth of Ethereum. he recent debacle surrounding ZKasino offers valuable...
-
In addition to its native SDK, Hedera also supports smart contracts in a platform compatible with the Ethereum Virtual Machine. This allows ...
No comments:
Post a Comment