From ce66a796eed47df6e310be5f0457b4268bd9d4d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Mon, 9 Mar 2015 18:15:07 -0700 Subject: [PATCH] Update the examples for 0.13 The only substantial difference here is that I made the harmony example use ES6 classes. The server rendering example was pretty wacky and hard to run but I did confirm that it works. --- examples/basic-commonjs/package.json | 2 +- examples/basic-jsx-harmony/index.html | 8 +++--- examples/server-rendering/jsapp/package.json | 4 +-- .../server-rendering/reactserver/package.json | 2 +- .../server-rendering/reactserver/server.js | 2 +- examples/server-rendering/webapp/index.php | 25 ++++++++++++++----- 6 files changed, 28 insertions(+), 15 deletions(-) diff --git a/examples/basic-commonjs/package.json b/examples/basic-commonjs/package.json index 75f08e7289bb6..c2f213efa7884 100644 --- a/examples/basic-commonjs/package.json +++ b/examples/basic-commonjs/package.json @@ -5,7 +5,7 @@ "devDependencies": { "browserify": "^6.3.3", "envify": "^3.2.0", - "react": "^0.12.0", + "react": "^0.13.0", "reactify": "^0.17.1" }, "scripts": { diff --git a/examples/basic-jsx-harmony/index.html b/examples/basic-jsx-harmony/index.html index e8accdb86774f..dc1b2fac5c56e 100644 --- a/examples/basic-jsx-harmony/index.html +++ b/examples/basic-jsx-harmony/index.html @@ -2,11 +2,11 @@ - Basic Example with JSX with Harmony + Basic Example with JSX and ES6 features -

Basic Example with JSX with Harmony

+

Basic Example with JSX and ES6 features

To install React, follow the instructions on @@ -26,7 +26,7 @@

Example Details

'; + $startup_code = << +SCRIPT; $container_markup = '
' . $server_markup . '
';