From 4b5d54671aeaf2817e9e7e6ebe9f1c1fb5b614a7 Mon Sep 17 00:00:00 2001 From: Alberto Gimeno Date: Sat, 16 Jun 2018 11:49:15 +0200 Subject: [PATCH] Update App.tsx example to fix tslint errors There were a few tslint errors and also the extension of the file name was `.js` instead of `.tsx` --- docs/react/use-in-typescript.en-US.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/react/use-in-typescript.en-US.md b/docs/react/use-in-typescript.en-US.md index 166294d351..5d3d34689a 100644 --- a/docs/react/use-in-typescript.en-US.md +++ b/docs/react/use-in-typescript.en-US.md @@ -39,15 +39,15 @@ Open browser at http://localhost:3000/, it renders a header saying "Welcome to R $ yarn add antd ``` -Modify `src/App.js`, import Button component from `antd`. +Modify `src/App.tsx`, import Button component from `antd`. ```jsx +import { Button } from 'antd'; import * as React from 'react'; -import Button from 'antd/lib/button'; import './App.css'; class App extends React.Component { - render() { + public render() { return (