From 1c1ea40ca55f9cf438b0a0a3d2f0cf00d5dbe4b0 Mon Sep 17 00:00:00 2001 From: Paul Hofmann Date: Wed, 6 May 2015 16:16:39 +0200 Subject: [PATCH] Create jsx.js added JSX (XML-like syntax extension to ECMAScript) for React as specified at https://facebook.github.io/jsx/ --- j/jsx.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 j/jsx.js diff --git a/j/jsx.js b/j/jsx.js new file mode 100644 index 00000000..76f21413 --- /dev/null +++ b/j/jsx.js @@ -0,0 +1,12 @@ +var React = require('react'); + +var HelloWorld = React.createClass({ + displayName: 'HelloWorld', + render: function() { + return ( + Hello World + ); + } +}); + +console.log(React.renderToString());