From af7156f27b3b7bd7145f91782bfedd4b35ecadd7 Mon Sep 17 00:00:00 2001 From: Yaroslav Kukytsyak Date: Sun, 27 Dec 2020 12:58:16 +0100 Subject: [PATCH] Refine Usage section --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f58549e..254d974 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ If you want to use a fetching library that is not compatible with React Suspense For each route, we need to specify a component, which needs to be the `default` export. For example: ```tsx -const PostPage: RouteComponent = ({ preloadedData, params }) => { +const PostPage: RouteComponent = ({ preloadedData, params }) => { const post = preloadedData.read(); if (!post) { @@ -100,10 +100,12 @@ Even though all routes can be specified top-level, most apps have a container ar const Root: RouteComponent = ({ children }) => ( <>
- {children} + {children}