forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact-router-bootstrap-tests.tsx
32 lines (27 loc) · 1.11 KB
/
react-router-bootstrap-tests.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// React-Router-Bootstrap Test
// ================================================================================
///<reference path="../react/react.d.ts"/>
///<reference path="../react-bootstrap/react-bootstrap.d.ts"/>
///<reference path="react-router-bootstrap.d.ts"/>
// Imports
// --------------------------------------------------------------------------------
import * as React from 'react';
import { Component, CSSProperties } from 'react';
import { Button } from 'react-bootstrap';
import { LinkContainer, IndexLinkContainer } from 'react-router-bootstrap'
export class ReactRouterBootstrapTest extends Component<any, any> {
callback() {
alert('Callback: ' + JSON.stringify(arguments));
}
public render() {
let style: CSSProperties = { padding: '50px' };
return (
<div style={style}>
<div style={style}>
<LinkContainer to="/page"><Button>Link</Button></LinkContainer>
<IndexLinkContainer to="/index"><Button>Link</Button></IndexLinkContainer>
</div>
</div>
);
}
}