mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Simplifications in ReactSpa and ReactReduxSpa
This commit is contained in:
@@ -67,7 +67,7 @@ class FetchData extends React.Component<WeatherForecastProps, {}> {
|
||||
}
|
||||
}
|
||||
|
||||
export default connect<WeatherForecastsState.WeatherForecastsState, {}, WeatherForecastProps>(
|
||||
export default connect(
|
||||
(state: ApplicationState) => state.weatherForecasts, // Selects which state properties are merged into the component's props
|
||||
WeatherForecastsState.actionCreators // Selects which action creators are merged into the component's props
|
||||
)(FetchData);
|
||||
)(FetchData) as typeof FetchData;
|
||||
|
||||
Reference in New Issue
Block a user