This repository was archived by the owner on Apr 8, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +10
-10
lines changed
ReactReduxSpa/ClientApp/components
ReactSpa/ClientApp/components Expand file tree Collapse file tree 10 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import * as WeatherForecasts from '../store/WeatherForecasts';
77
88type CounterProps = CounterStore . CounterState & typeof CounterStore . actionCreators ;
99
10- class Counter extends React . Component < CounterProps , void > {
10+ class Counter extends React . Component < CounterProps , { } > {
1111 public render ( ) {
1212 return < div >
1313 < h1 > Counter</ h1 >
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ type WeatherForecastProps =
1010 & typeof WeatherForecastsState . actionCreators // ... plus action creators we've requested
1111 & { params : { startDateIndex : string } } ; // ... plus incoming routing parameters
1212
13- class FetchData extends React . Component < WeatherForecastProps , void > {
13+ class FetchData extends React . Component < WeatherForecastProps , { } > {
1414 componentWillMount ( ) {
1515 // This method runs when the component is first added to the page
1616 let startDateIndex = parseInt ( this . props . params . startDateIndex ) || 0 ;
Original file line number Diff line number Diff line change 11import * as React from 'react' ;
22
3- export default class Home extends React . Component < void , void > {
3+ export default class Home extends React . Component < { } , { } > {
44 public render ( ) {
55 return < div >
66 < h1 > Hello, world!</ h1 >
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export interface LayoutProps {
55 body : React . ReactElement < any > ;
66}
77
8- export class Layout extends React . Component < LayoutProps , void > {
8+ export class Layout extends React . Component < LayoutProps , { } > {
99 public render ( ) {
1010 return < div className = 'container-fluid' >
1111 < div className = 'row' >
Original file line number Diff line number Diff line change 11import * as React from 'react' ;
22import { Link } from 'react-router' ;
33
4- export class NavMenu extends React . Component < any , void > {
4+ export class NavMenu extends React . Component < { } , { } > {
55 public render ( ) {
66 return < div className = 'main-nav' >
77 < div className = 'navbar navbar-inverse' >
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ interface CounterState {
44 currentCount : number ;
55}
66
7- export class Counter extends React . Component < any , CounterState > {
7+ export class Counter extends React . Component < { } , CounterState > {
88 constructor ( ) {
99 super ( ) ;
1010 this . state = { currentCount : 0 } ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ interface FetchDataExampleState {
66 loading : boolean ;
77}
88
9- export class FetchData extends React . Component < any , FetchDataExampleState > {
9+ export class FetchData extends React . Component < { } , FetchDataExampleState > {
1010 constructor ( ) {
1111 super ( ) ;
1212 this . state = { forecasts : [ ] , loading : true } ;
Original file line number Diff line number Diff line change 11import * as React from 'react' ;
22
3- export class Home extends React . Component < any , void > {
3+ export class Home extends React . Component < { } , { } > {
44 public render ( ) {
55 return < div >
66 < h1 > Hello, world!</ h1 >
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export interface LayoutProps {
55 body : React . ReactElement < any > ;
66}
77
8- export class Layout extends React . Component < LayoutProps , void > {
8+ export class Layout extends React . Component < LayoutProps , { } > {
99 public render ( ) {
1010 return < div className = 'container-fluid' >
1111 < div className = 'row' >
Original file line number Diff line number Diff line change 11import * as React from 'react' ;
22import { Link } from 'react-router' ;
33
4- export class NavMenu extends React . Component < any , void > {
4+ export class NavMenu extends React . Component < { } , { } > {
55 public render ( ) {
66 return < div className = 'main-nav' >
77 < div className = 'navbar navbar-inverse' >
You can’t perform that action at this time.
0 commit comments