From c7d26befbc1c17d9960ed1c20d0e0dc14b6546b6 Mon Sep 17 00:00:00 2001 From: drcmda Date: Tue, 20 Jun 2023 18:31:56 +0200 Subject: [PATCH] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1bed682..ff39728 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,9 @@ Base64-packed javascript (default-)module exports that can be npm installed and # Usage -### React-three-fiber +## React-three-fiber -In React you can use `suspend` from [suspend-react](https://github.com/pmndrs/suspend-react), or anything else that can resolve a promise. This will allow components to fall into suspense which allows you to control loading states. The assets will be lazy loaded and cached for multiple re-use, they will not appear in the main bundle. +In React you can use `suspend` from [suspend-react](https://github.com/pmndrs/suspend-react), or anything else that can resolve a promise. The assets will be lazy loaded and cached for multiple re-use, they will not appear in the main bundle. ```jsx import { Environment, Gltf, Text, Text3D } from '@react-three/drei' @@ -48,6 +48,8 @@ function Scene() { hello ``` +## Vanilla javascript + ### Dynamic import > **Note**