Browse Source

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`
pull/10930/head
Alberto Gimeno 7 years ago
committed by 偏右
parent
commit
4b5d54671a
  1. 6
      docs/react/use-in-typescript.en-US.md

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

Loading…
Cancel
Save