From 4616e23450af3238dd56c8e327c93e5eac859914 Mon Sep 17 00:00:00 2001 From: Stephen Margheim Date: Wed, 29 Dec 2021 11:19:02 +0100 Subject: [PATCH 1/2] Update README will fuller vanilla JS example --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 6c106ba..f3e629e 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,24 @@ - [**Demo** and configurations](https://cobe.vercel.app) - Use with React: https://codesandbox.io/s/eager-sky-r2q0g +- Use with vanilla JS: https://codesandbox.io/s/peaceful-gwen-m579y ## Quick Start +```html + +``` + ```js import createGlobe from 'cobe' let phi = 0 +let canvas = document.getElementById("cobe") const globe = createGlobe(canvas, { devicePixelRatio: 2, From 6c55b39add1c5668fcccbe31c9c527ff28b43a38 Mon Sep 17 00:00:00 2001 From: Shu Ding Date: Fri, 31 Dec 2021 01:14:54 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f3e629e..f639017 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,9 @@ ```html ```