diff --git a/react-springboot/my-app/.eslintcache b/react-springboot/my-app/.eslintcache index 171f0f59..1763265c 100644 --- a/react-springboot/my-app/.eslintcache +++ b/react-springboot/my-app/.eslintcache @@ -1 +1 @@ -[{"C:\\Users\\Woojin\\Desktop\\study\\Study\\react-springboot\\my-app\\src\\index.js":"1","C:\\Users\\Woojin\\Desktop\\study\\Study\\react-springboot\\my-app\\src\\App.js":"2","C:\\Users\\Woojin\\Desktop\\study\\Study\\react-springboot\\my-app\\src\\pages\\ListPage.js":"3","C:\\Users\\Woojin\\Desktop\\study\\Study\\react-springboot\\my-app\\src\\pages\\WritePage.js":"4","C:\\Users\\Woojin\\Desktop\\study\\Study\\react-springboot\\my-app\\src\\components\\Navigation.js":"5"},{"size":360,"mtime":1612361035951,"results":"6","hashOfConfig":"7"},{"size":439,"mtime":1612369197962,"results":"8","hashOfConfig":"7"},{"size":1998,"mtime":1612373599309,"results":"9","hashOfConfig":"7"},{"size":492,"mtime":1612368959285,"results":"10","hashOfConfig":"7"},{"size":306,"mtime":1612368239201,"results":"11","hashOfConfig":"7"},{"filePath":"12","messages":"13","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"14"},"11g3wnd",{"filePath":"15","messages":"16","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"17","messages":"18","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"19","messages":"20","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"21","messages":"22","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\Users\\Woojin\\Desktop\\study\\Study\\react-springboot\\my-app\\src\\index.js",[],["23","24"],"C:\\Users\\Woojin\\Desktop\\study\\Study\\react-springboot\\my-app\\src\\App.js",["25","26"],"C:\\Users\\Woojin\\Desktop\\study\\Study\\react-springboot\\my-app\\src\\pages\\ListPage.js",[],"C:\\Users\\Woojin\\Desktop\\study\\Study\\react-springboot\\my-app\\src\\pages\\WritePage.js",["27"],"C:\\Users\\Woojin\\Desktop\\study\\Study\\react-springboot\\my-app\\src\\components\\Navigation.js",[],{"ruleId":"28","replacedBy":"29"},{"ruleId":"30","replacedBy":"31"},{"ruleId":"32","severity":1,"message":"33","line":1,"column":10,"nodeType":"34","messageId":"35","endLine":1,"endColumn":15},{"ruleId":"32","severity":1,"message":"36","line":4,"column":8,"nodeType":"34","messageId":"35","endLine":4,"endColumn":17},{"ruleId":"32","severity":1,"message":"37","line":6,"column":9,"nodeType":"34","messageId":"35","endLine":6,"endColumn":13},"no-native-reassign",["38"],"no-negated-in-lhs",["39"],"no-unused-vars","'Route' is defined but never used.","Identifier","unusedVar","'WritePage' is defined but never used.","'post' is assigned a value but never used.","no-global-assign","no-unsafe-negation"] \ No newline at end of file +[{"C:\\Users\\Woojin\\Desktop\\study\\Study\\react-springboot\\my-app\\src\\index.js":"1","C:\\Users\\Woojin\\Desktop\\study\\Study\\react-springboot\\my-app\\src\\App.js":"2","C:\\Users\\Woojin\\Desktop\\study\\Study\\react-springboot\\my-app\\src\\components\\Top.js":"3","C:\\Users\\Woojin\\Desktop\\study\\Study\\react-springboot\\my-app\\src\\components\\Bottom.js":"4","C:\\Users\\Woojin\\Desktop\\study\\Study\\react-springboot\\my-app\\src\\store.js":"5"},{"size":534,"mtime":1612422022110,"results":"6","hashOfConfig":"7"},{"size":261,"mtime":1612422137381,"results":"8","hashOfConfig":"7"},{"size":346,"mtime":1612423047106,"results":"9","hashOfConfig":"7"},{"size":464,"mtime":1612422810996,"results":"10","hashOfConfig":"7"},{"size":637,"mtime":1612422959111,"results":"11","hashOfConfig":"7"},{"filePath":"12","messages":"13","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"11g3wnd",{"filePath":"14","messages":"15","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"16","messages":"17","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"18","messages":"19","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"20","messages":"21","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\Users\\Woojin\\Desktop\\study\\Study\\react-springboot\\my-app\\src\\index.js",[],"C:\\Users\\Woojin\\Desktop\\study\\Study\\react-springboot\\my-app\\src\\App.js",[],"C:\\Users\\Woojin\\Desktop\\study\\Study\\react-springboot\\my-app\\src\\components\\Top.js",[],"C:\\Users\\Woojin\\Desktop\\study\\Study\\react-springboot\\my-app\\src\\components\\Bottom.js",[],"C:\\Users\\Woojin\\Desktop\\study\\Study\\react-springboot\\my-app\\src\\store.js",[]] \ No newline at end of file diff --git a/react-springboot/my-app/package-lock.json b/react-springboot/my-app/package-lock.json index f4c6ba0b..5c159f2a 100644 --- a/react-springboot/my-app/package-lock.json +++ b/react-springboot/my-app/package-lock.json @@ -12451,6 +12451,18 @@ "warning": "^4.0.3" } }, + "react-redux": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-7.2.2.tgz", + "integrity": "sha512-8+CQ1EvIVFkYL/vu6Olo7JFLWop1qRUeb46sGtIMDCSpgwPQq8fPLpirIB0iTqFe9XYEFPHssdX8/UwN6pAkEA==", + "requires": { + "@babel/runtime": "^7.12.1", + "hoist-non-react-statics": "^3.3.2", + "loose-envify": "^1.4.0", + "prop-types": "^15.7.2", + "react-is": "^16.13.1" + } + }, "react-refresh": { "version": "0.8.3", "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.8.3.tgz", diff --git a/react-springboot/my-app/package.json b/react-springboot/my-app/package.json index 58d0df27..4b3b3001 100644 --- a/react-springboot/my-app/package.json +++ b/react-springboot/my-app/package.json @@ -12,8 +12,10 @@ "react": "^17.0.1", "react-bootstrap": "^1.4.3", "react-dom": "^17.0.1", + "react-redux": "^7.2.2", "react-router-dom": "^5.2.0", "react-scripts": "4.0.1", + "redux": "^4.0.5", "styled-components": "^5.2.1", "web-vitals": "^0.2.4" }, diff --git a/react-springboot/my-app/practice/App.css b/react-springboot/my-app/practice/01/App.css similarity index 100% rename from react-springboot/my-app/practice/App.css rename to react-springboot/my-app/practice/01/App.css diff --git a/react-springboot/my-app/practice/App.js b/react-springboot/my-app/practice/01/App.js similarity index 100% rename from react-springboot/my-app/practice/App.js rename to react-springboot/my-app/practice/01/App.js diff --git a/react-springboot/my-app/practice/Style.js b/react-springboot/my-app/practice/01/Style.js similarity index 100% rename from react-springboot/my-app/practice/Style.js rename to react-springboot/my-app/practice/01/Style.js diff --git a/react-springboot/my-app/practice/Sub.js b/react-springboot/my-app/practice/01/Sub.js similarity index 100% rename from react-springboot/my-app/practice/Sub.js rename to react-springboot/my-app/practice/01/Sub.js diff --git a/react-springboot/my-app/practice/components/Footer.js b/react-springboot/my-app/practice/01/components/Footer.js similarity index 100% rename from react-springboot/my-app/practice/components/Footer.js rename to react-springboot/my-app/practice/01/components/Footer.js diff --git a/react-springboot/my-app/practice/components/Header.js b/react-springboot/my-app/practice/01/components/Header.js similarity index 100% rename from react-springboot/my-app/practice/components/Header.js rename to react-springboot/my-app/practice/01/components/Header.js diff --git a/react-springboot/my-app/practice/components/home/Home.js b/react-springboot/my-app/practice/01/components/home/Home.js similarity index 100% rename from react-springboot/my-app/practice/components/home/Home.js rename to react-springboot/my-app/practice/01/components/home/Home.js diff --git a/react-springboot/my-app/practice/components/Login.js b/react-springboot/my-app/practice/01/components/login/Login.js similarity index 100% rename from react-springboot/my-app/practice/components/Login.js rename to react-springboot/my-app/practice/01/components/login/Login.js diff --git a/react-springboot/my-app/practice/index.css b/react-springboot/my-app/practice/01/index.css similarity index 100% rename from react-springboot/my-app/practice/index.css rename to react-springboot/my-app/practice/01/index.css diff --git a/react-springboot/my-app/practice/index.js b/react-springboot/my-app/practice/01/index.js similarity index 100% rename from react-springboot/my-app/practice/index.js rename to react-springboot/my-app/practice/01/index.js diff --git a/react-springboot/my-app/practice/pages/HomePage.js b/react-springboot/my-app/practice/01/pages/HomePage.js similarity index 100% rename from react-springboot/my-app/practice/pages/HomePage.js rename to react-springboot/my-app/practice/01/pages/HomePage.js diff --git a/react-springboot/my-app/practice/pages/LoginPage.js b/react-springboot/my-app/practice/01/pages/LoginPage.js similarity index 100% rename from react-springboot/my-app/practice/pages/LoginPage.js rename to react-springboot/my-app/practice/01/pages/LoginPage.js diff --git a/react-springboot/my-app/practice/02 Route, Link/App.css b/react-springboot/my-app/practice/02 Route, Link/App.css new file mode 100644 index 00000000..77e8e715 --- /dev/null +++ b/react-springboot/my-app/practice/02 Route, Link/App.css @@ -0,0 +1,3 @@ +.box-style { + color: blue; +} diff --git a/react-springboot/my-app/practice/02 Route, Link/App.js b/react-springboot/my-app/practice/02 Route, Link/App.js new file mode 100644 index 00000000..bf9d3101 --- /dev/null +++ b/react-springboot/my-app/practice/02 Route, Link/App.js @@ -0,0 +1,18 @@ +import { Route } from 'react-router-dom'; +import Navigation from './components/Navigation'; +import ListPage from './pages/ListPage'; +import WritePage from './pages/WritePage'; + +function App() { + return ( +