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`
This commit is contained in:
Alberto Gimeno 2018-06-16 11:49:15 +02:00 committed by 偏右
parent 5ab265a009
commit 4b5d54671a

View File

@ -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 (
<div className="App">
<Button type="primary">Button</Button>