Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit558999b

Browse files
committed
remove container notation
1 parent7863639 commit558999b

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

‎src/App.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
importReactfrom"react";
2-
importCarsContainerfrom"./containers/CarsPageContainer";
2+
importCarsPagefrom"./features/car/CarsPage";
33

44
functionApp(){
55
return(
66
<divclassName="container-fluid">
77
<h1>Example React Redux unnecessary re-rendering demo</h1>
8-
<CarsContainer/>
8+
<CarsPage/>
99
</div>
1010
);
1111
}
File renamed without changes.

‎src/containers/CarsPageContainer.js‎renamed to ‎src/features/car/CarsPage.js‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
importReact,{useEffect}from"react";
22
import{connect}from"react-redux";
3-
import{carData}from"../_fixtures/mockCarData";
4-
importCarfrom"../components/Car";
5-
import{canToggleSelected}from"../store/actions/options";
6-
importOptionsfrom"../components/Options";
7-
import{addAllCars,addCar,selectCar}from"../store/actions/car";
3+
import{carData}from"../../_fixtures/mockCarData";
4+
importCarfrom"./Car";
5+
import{canToggleSelected}from"../../store/actions/options";
6+
importOptionsfrom"../option/Options";
7+
import{addAllCars,addCar,selectCar}from"../../store/actions/car";
88

9-
constCarsPageContainer=({
9+
constCarsPage=({
1010
carState,
1111
optionState,
1212
addAllCars,
@@ -59,4 +59,4 @@ const mapDispatchToProps = {
5959
addCar,
6060
};
6161

62-
exportdefaultconnect(mapStateToProps,mapDispatchToProps)(CarsPageContainer);
62+
exportdefaultconnect(mapStateToProps,mapDispatchToProps)(CarsPage);
File renamed without changes.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp