From 0966aa2532f5800b95d1e40234e9324333693ba8 Mon Sep 17 00:00:00 2001 From: Ruben Casas Date: Fri, 19 Aug 2022 14:37:15 +0100 Subject: [PATCH 1/7] docs: add syntax highligting --- docs/getting-started/tutorial.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/getting-started/tutorial.md b/docs/getting-started/tutorial.md index a53064135b..0b4404c1d3 100644 --- a/docs/getting-started/tutorial.md +++ b/docs/getting-started/tutorial.md @@ -67,9 +67,10 @@ The `main.jsx` file is the entry point. Open it up and we'll put React Router on 👉 **Add [`DataBrowserRouter`][databrowserrouter] and a [`Route`][route] to `main.jsx`** -```jsx lines=[3,8-10] filename=src/main.jsx +```jsx lines=[4, 9-11] bad lines=[1] filename=src/main.jsx import React from "react"; import ReactDOM from "react-dom/client"; +import App from './App'; import { DataBrowserRouter, Route } from "react-router-dom"; import "./index.css"; @@ -586,7 +587,7 @@ We'll create new contacts by exporting an `action` in our root route, wiring it 👉 **Create the action and change `
` to ``** -```jsx filename=src/routes/root.jsx lines=[5,9-11,22-24] +```jsx filename=src/routes/root.jsx lines=[7,5,9-11,22-24] import { Outlet, Link, @@ -608,6 +609,7 @@ export default function Root() {