auto commit
This commit is contained in:
parent
c09ae961b5
commit
46dce38662
@ -90,3 +90,4 @@ cd my-app
|
||||
npm start
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
|
||||
### `npm run build` fails to minify
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
||||
|
||||
|
||||
@ -16,3 +16,4 @@
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@ -5,3 +5,4 @@ function App() {
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
||||
|
||||
@ -6,3 +6,4 @@ const root = ReactDOM.createRoot(document.getElementById('root'));
|
||||
root.render(
|
||||
<App />
|
||||
);
|
||||
|
||||
|
||||
@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
|
||||
### `npm run build` fails to minify
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
||||
|
||||
|
||||
@ -16,3 +16,4 @@
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@ -106,3 +106,4 @@ function App() {
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
||||
|
||||
@ -6,3 +6,4 @@ const root = ReactDOM.createRoot(document.getElementById('root'));
|
||||
root.render(
|
||||
<App />
|
||||
);
|
||||
|
||||
|
||||
@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
|
||||
### `npm run build` fails to minify
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
||||
|
||||
|
||||
@ -16,3 +16,4 @@
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@ -53,3 +53,4 @@ function App() {
|
||||
// }
|
||||
|
||||
export default App;
|
||||
|
||||
|
||||
@ -6,3 +6,4 @@ const root = ReactDOM.createRoot(document.getElementById('root'));
|
||||
root.render(
|
||||
<App />
|
||||
);
|
||||
|
||||
|
||||
@ -341,3 +341,4 @@ export default Money;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
|
||||
### `npm run build` fails to minify
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
||||
|
||||
|
||||
@ -16,3 +16,4 @@
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@ -68,3 +68,4 @@ class App extends React.Component {
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
||||
|
||||
@ -6,3 +6,4 @@ const root = ReactDOM.createRoot(document.getElementById('root'));
|
||||
root.render(
|
||||
<App />
|
||||
);
|
||||
|
||||
|
||||
@ -361,3 +361,4 @@ export default App;
|
||||
|
||||
关于受控组件和非受控组件,可以参阅:*https://goshacmd.com/controlled-vs-uncontrolled-inputs-react/*
|
||||
|
||||
|
||||
|
||||
@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
|
||||
### `npm run build` fails to minify
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
||||
|
||||
|
||||
@ -16,3 +16,4 @@
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@ -27,3 +27,4 @@ class App extends React.Component {
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
||||
|
||||
@ -6,3 +6,4 @@ const root = ReactDOM.createRoot(document.getElementById('root'));
|
||||
root.render(
|
||||
<App />
|
||||
);
|
||||
|
||||
|
||||
@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
|
||||
### `npm run build` fails to minify
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
||||
|
||||
|
||||
@ -16,3 +16,4 @@
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@ -48,3 +48,4 @@ class App extends React.Component {
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
||||
|
||||
@ -6,3 +6,4 @@ const root = ReactDOM.createRoot(document.getElementById('root'));
|
||||
root.render(
|
||||
<App />
|
||||
);
|
||||
|
||||
|
||||
@ -346,3 +346,4 @@ function useMyBook(){
|
||||
export default useMyBook;
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
|
||||
### `npm run build` fails to minify
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
||||
|
||||
|
||||
@ -16,3 +16,4 @@
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@ -6,3 +6,4 @@ const root = ReactDOM.createRoot(document.getElementById('root'));
|
||||
root.render(
|
||||
<App />
|
||||
);
|
||||
|
||||
|
||||
@ -39,3 +39,4 @@
|
||||
|
||||
整个 *React-router*,我们将写一个学生管理系统,用到什么讲什么。
|
||||
|
||||
|
||||
|
||||
@ -111,3 +111,4 @@ npm run json:server
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
|
||||
### `npm run build` fails to minify
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
||||
|
||||
|
||||
@ -30,3 +30,4 @@
|
||||
></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@ -48,3 +48,4 @@ function App() {
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
||||
|
||||
@ -9,3 +9,4 @@ root.render(
|
||||
<App />
|
||||
</BrowserRouter>
|
||||
);
|
||||
|
||||
|
||||
@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
|
||||
### `npm run build` fails to minify
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
||||
|
||||
|
||||
@ -30,3 +30,4 @@
|
||||
></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@ -51,3 +51,4 @@ function App() {
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
||||
|
||||
@ -9,3 +9,4 @@ root.render(
|
||||
<App />
|
||||
</BrowserRouter>
|
||||
);
|
||||
|
||||
|
||||
@ -210,3 +210,4 @@ export default Router;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
|
||||
### `npm run build` fails to minify
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
||||
|
||||
|
||||
@ -30,3 +30,4 @@
|
||||
></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@ -40,3 +40,4 @@ function App() {
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
||||
|
||||
@ -9,3 +9,4 @@ root.render(
|
||||
<App />
|
||||
</BrowserRouter>
|
||||
);
|
||||
|
||||
|
||||
@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
|
||||
### `npm run build` fails to minify
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
||||
|
||||
|
||||
@ -26,3 +26,4 @@
|
||||
></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@ -53,3 +53,4 @@ export default function App() {
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -24,3 +24,4 @@ request.interceptors.response.use(
|
||||
);
|
||||
|
||||
export default request;
|
||||
|
||||
|
||||
@ -41,3 +41,4 @@ export function editUserApi(id, data) {
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -9,3 +9,4 @@ root.render(
|
||||
<App />
|
||||
</BrowserRouter>
|
||||
);
|
||||
|
||||
|
||||
@ -37,3 +37,4 @@ http://localhost:3000/users?q=h
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -104,3 +104,4 @@ export const store = createStore(
|
||||
|
||||
和后端交互示例:学生管理系统
|
||||
|
||||
|
||||
|
||||
@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
|
||||
### `npm run build` fails to minify
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
||||
|
||||
|
||||
@ -17,3 +17,4 @@
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@ -18,3 +18,4 @@ render();
|
||||
// 让 redux 和 react 建立关联
|
||||
// subscribe 叫做订阅,在仓库的状态发生改变的时候
|
||||
store.subscribe(render);
|
||||
|
||||
|
||||
@ -55,3 +55,4 @@ export function todoReducer(state = defaultState, action) {
|
||||
default: return state;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -14,3 +14,4 @@ export const store = createStore(
|
||||
todoReducer,
|
||||
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
|
||||
);
|
||||
|
||||
|
||||
@ -178,3 +178,4 @@ export const {add,del,change} = todolistSlice.actions;
|
||||
|
||||
和后端交互示例:学生管理系统
|
||||
|
||||
|
||||
|
||||
@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
|
||||
### `npm run build` fails to minify
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
||||
|
||||
|
||||
@ -17,3 +17,4 @@
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@ -13,3 +13,4 @@ root.render(
|
||||
<App />
|
||||
</Provider>
|
||||
);
|
||||
|
||||
|
||||
@ -9,3 +9,4 @@ export default configureStore({
|
||||
todo : todolistReducer
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@ -178,3 +178,4 @@ export const {add,del,change} = todolistSlice.actions;
|
||||
|
||||
和后端交互示例:学生管理系统
|
||||
|
||||
|
||||
|
||||
@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
|
||||
### `npm run build` fails to minify
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
||||
|
||||
|
||||
@ -30,3 +30,4 @@
|
||||
></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@ -40,3 +40,4 @@ function App() {
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
||||
|
||||
@ -13,3 +13,4 @@ root.render(
|
||||
</BrowserRouter>
|
||||
</Provider>
|
||||
);
|
||||
|
||||
|
||||
@ -6,3 +6,4 @@ export default configureStore({
|
||||
stu: stuReducer,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@ -83,3 +83,4 @@ export const stuSlice = createSlice({
|
||||
|
||||
const { initStuList, deleteStu, addStu, editStu } = stuSlice.actions;
|
||||
export default stuSlice.reducer;
|
||||
|
||||
|
||||
@ -108,3 +108,4 @@ const App = () => (
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
|
||||
### `npm run build` fails to minify
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
||||
|
||||
|
||||
@ -16,3 +16,4 @@
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@ -12,3 +12,4 @@ root.render(
|
||||
<App />
|
||||
</ConfigProvider>
|
||||
);
|
||||
|
||||
|
||||
@ -356,3 +356,4 @@ npm install --save @toast-ui/react-editor --force
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
|
||||
### `npm run build` fails to minify
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
||||
|
||||
|
||||
@ -102,3 +102,4 @@ function getClientEnvironment(publicUrl) {
|
||||
}
|
||||
|
||||
module.exports = getClientEnvironment;
|
||||
|
||||
|
||||
@ -64,3 +64,4 @@ function getHttpsConfig() {
|
||||
}
|
||||
|
||||
module.exports = getHttpsConfig;
|
||||
|
||||
|
||||
@ -27,3 +27,4 @@ module.exports = babelJest.createTransformer({
|
||||
babelrc: false,
|
||||
configFile: false,
|
||||
});
|
||||
|
||||
|
||||
@ -12,3 +12,4 @@ module.exports = {
|
||||
return 'cssTransform';
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@ -38,3 +38,4 @@ module.exports = {
|
||||
return `module.exports = ${assetFilename};`;
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@ -132,3 +132,4 @@ function getModules() {
|
||||
}
|
||||
|
||||
module.exports = getModules();
|
||||
|
||||
|
||||
@ -75,3 +75,4 @@ module.exports = {
|
||||
|
||||
|
||||
module.exports.moduleFileExtensions = moduleFileExtensions;
|
||||
|
||||
|
||||
@ -753,3 +753,4 @@ module.exports = function (webpackEnv) {
|
||||
performance: false,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@ -7,3 +7,4 @@ module.exports = env => {
|
||||
|
||||
return hash.digest('hex');
|
||||
};
|
||||
|
||||
|
||||
@ -125,3 +125,4 @@ module.exports = function (proxy, allowedHost) {
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@ -16,3 +16,4 @@
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@ -215,3 +215,4 @@ function copyPublicFolder() {
|
||||
filter: file => file !== paths.appHtml,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -152,3 +152,4 @@ checkBrowsers(paths.appPath, isInteractive)
|
||||
}
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
|
||||
@ -50,3 +50,4 @@ if (
|
||||
|
||||
|
||||
jest.run(argv);
|
||||
|
||||
|
||||
@ -26,3 +26,4 @@ export function addComment(newComment){
|
||||
data : newComment
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -38,3 +38,4 @@ service.interceptors.response.use(
|
||||
);
|
||||
|
||||
export default service;
|
||||
|
||||
|
||||
@ -45,3 +45,4 @@ function Recommend(props) {
|
||||
}
|
||||
|
||||
export default Recommend;
|
||||
|
||||
|
||||
@ -105,3 +105,4 @@
|
||||
align-items:center;
|
||||
/* outline: 1px solid blue; */
|
||||
}
|
||||
|
||||
|
||||
@ -13,3 +13,4 @@
|
||||
margin-top: 10px;
|
||||
font-weight: 200;
|
||||
}
|
||||
|
||||
|
||||
@ -47,3 +47,4 @@
|
||||
justify-content:center;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -23,3 +23,4 @@ root.render(
|
||||
</BrowserRouter>
|
||||
</Provider>
|
||||
);
|
||||
|
||||
|
||||
@ -8,3 +8,4 @@ export default configureStore({
|
||||
type: typeReducer
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@ -22,3 +22,4 @@ const typeSlice = createSlice({
|
||||
});
|
||||
|
||||
export default typeSlice.reducer;
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user