From ed6b62e169fd92ca9870be85cb6794d5e0fea2e5 Mon Sep 17 00:00:00 2001 From: Mikkel Laursen Date: Sat, 5 Sep 2020 21:21:28 -0600 Subject: [PATCH] feat(examples): added a simple umd example to show CDN usage --- examples/umd/README.md | 43 ++++++++++++++++++++++++++ examples/umd/index.html | 67 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 examples/umd/README.md create mode 100644 examples/umd/index.html diff --git a/examples/umd/README.md b/examples/umd/README.md new file mode 100644 index 0000000000..9edec8daa6 --- /dev/null +++ b/examples/umd/README.md @@ -0,0 +1,43 @@ +# ReactMD with UMD + +This is a simple example of how you can use the UMD bundles from React, +ReactDOM, and ReactMD. + +## What's Included + +I super simple `index.html` file that: + +- loads the Material Icons and Roboto fonts +- loads the `React`, `ReactDOM`, and `ReactMD` UMD bundles +- creates a simple [index.html](./index.html) that uses the `TextContainer` and + `Text` components from `ReactMD` + +## How to Use + +First download the example (or just copy/paste the [index.html](./index.html)): + +```bash +curl https://codeload.github.com/mlaursen/react-md/tar.gz/master | tar -xz --strip=2 react-md-master/examples/nextjs +cd nextjs +``` + +Next, open the file by double clicking or running the following command in the +command line: + +```sh +open index.html +``` + +Finally, manually update the `index.html` with changes in the final ` + + + + + + + + + + + + + + + + +
+ + + +