From 150a05553498194943bbf77a919cb7fe34b34d64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Tue, 22 Sep 2015 11:16:36 -0700 Subject: [PATCH] Update to match changes on website https://github.com/facebook/react/pull/4931 --- public/scripts/example.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/public/scripts/example.js b/public/scripts/example.js index 3d61ef33..a77a7c8a 100644 --- a/public/scripts/example.js +++ b/public/scripts/example.js @@ -11,14 +11,18 @@ */ var Comment = React.createClass({ - render: function() { + rawMarkup: function() { var rawMarkup = marked(this.props.children.toString(), {sanitize: true}); + return { __html: rawMarkup }; + }, + + render: function() { return (

{this.props.author}

- +
); }