Skip to content

Instantly share code, notes, and snippets.

LaneLayer Derived Lane Setup Guide

Complete step-by-step guide to set up and test a derived lane.

Prerequisites

  • Docker installed and running
  • Rust toolchain installed
  • Node.js and npm installed
  • cast (Foundry) installed
@masiedu4
masiedu4 / redirects-in-react-router-v6.md
Created December 9, 2021 16:30 — forked from mjackson/redirects-in-react-router-v6.md
Notes on handling redirects in React Router v6, including a detailed explanation of how this improves on what we used to do in v4/5

Redirects in React Router v6

An important part of "routing" is handling redirects. Redirects usually happen when you want to preserve an old link and send all the traffic bound for that destination to some new URL so you don't end up with broken links.

The way we recommend handling redirects has changed in React Router v6. This document explains why.

Background

In React Router v4/5 (they have the same API, you can read about why we had to bump the major version here) we had a <Redirect> component that you could use to tell the router when to automatically redirect to another URL. You might have used it like this:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Apple</title>
<style id="jsbin-css">
body{
text-align:center;
font-family:verdana;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Apple</title>
<style id="jsbin-css">
body{
text-align:center;
font-family:verdana;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Apple</title>
<style id="jsbin-css">
body{
text-align:center;
font-family:verdana;
@masiedu4
masiedu4 / index.html
Created May 22, 2020 14:25
THINK BIG;Unleashing Your Potential For Excellence // source https://jsbin.com/zeganes
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>THINK BIG;Unleashing Your Potential For Excellence</title>
</head>
<body>
<img src="https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/books/1348956234i/13465._UY400_SS400_.jpg" alt="cover photo"
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>BRcipe</title>
</head>
<body>
<h1>JOLLOF RECIPE</h1>
<h2>INGREDIENTS</h2>