From ce1274d436467833f1087d23639c266cde13a3a0 Mon Sep 17 00:00:00 2001 From: Cody Chan Date: Thu, 8 Jun 2017 01:09:22 +0800 Subject: [PATCH] docs: update React example in ES6 properly --- docs/style.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/style.md b/docs/style.md index 3369678..6fbb89b 100644 --- a/docs/style.md +++ b/docs/style.md @@ -427,13 +427,13 @@ module.exports = Breadcrumbs; // ES6的写法 import React from 'react'; -const Breadcrumbs = React.createClass({ +class Breadcrumbs extends React.Component { render() { return