mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 19:19:26 +08:00
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:
parent
5ab265a009
commit
4b5d54671a
@ -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…
Reference in New Issue
Block a user