From be75e3be66ecbaf1ad1b036e23946fabb7c19406 Mon Sep 17 00:00:00 2001
From: Ben Alpert
If you can see this, React is not working right. This is probably because you're viewing
@@ -18,19 +18,9 @@
This is written with JSX in a separate file and transformed in the browser.
-
- Learn more at
+ Learn more about React at
facebook.github.io/react.
- This is written with JSX in a separate file and transformed in the browser.
- Example Details: This is built with
- browserify.
- A separate JSX file is transformed in the browser.
+ Learn more about React at
+ facebook.github.io/react.
- To install React, follow the instructions on
- GitHub.
-
- If you can see this, React is not running. You probably didn't run:
- This is written with JSX in a separate file and precompiled to vanilla JS by running:
-
- Learn more at
+ Learn more about React at
facebook.github.io/react.
Ballmer Peak calculator
+ Ballmer Peak Calculator
Example Details
-
-
+ Basic Example with external JSX
+ Basic Example with External JSX
-
-
+ If you can see this, React is not working right. This is probably because you're viewing
+ this on your file system instead of a web server. Try running
+
-
OR
-
-cd /Path/To/This/File
-python -m SimpleHTTPServer
-open -a "Google Chrome" http://localhost:8000/.
-
+ python -m SimpleHTTPServer
+
+ and going to http://localhost:8000/.
Example Details
+ Basic Example with precompiled JSX
+ Basic Example with Precompiled JSX
- npm install -g react-tools
- jsx . build/
-
+ If you can see this, React is not running. Try running:
+ npm install -g react-tools
+cd examples/basic-jsx-precompile/
+jsx . build/
Example Details
-
-
+
- npm install -g react-tools
- jsx . build/
-
- npm install -g react-tools
+cd examples/basic-jsx-precompile/
+jsx . build/
This is written with JSX and transformed in the browser.
-
-- Learn more at + Learn more about React at facebook.github.io/react.
diff --git a/examples/basic/index.html b/examples/basic/index.html index 6bdf054154..5871a05041 100644 --- a/examples/basic/index.html +++ b/examples/basic/index.html @@ -18,16 +18,9 @@This is written in vanilla JavaScript (without JSX) and transformed in the browser.
-
-- Learn more at + Learn more about React at facebook.github.io/react.
diff --git a/examples/transitions/index.html b/examples/transitions/index.html index 63b2322854..2cc093be7a 100644 --- a/examples/transitions/index.html +++ b/examples/transitions/index.html @@ -2,7 +2,7 @@ -This is written with JSX and transformed in the browser.
-
-- Learn more at + Learn more about React at facebook.github.io/react.