迷你项目: 照片应用程序 设置环境 GitHub 项目: https://GitHub.com/paulnguyen-mn/redux-photo-app 1. 通过 Create React App 设置 ReactJS 应用程序 ...
迷你项目: 照片应用程序 设置环境 GitHub 项目: https://GitHub.com/paulnguyen-mn/redux-photo-app 1. 通过 Create React App 设置 ReactJS 应用程序 ...
Github Project: https://github.com/paulnguyen-mn/redux-photo-app
npm i --save-dev node-sassnpm i --save react-router-domnpm i --save reactstrapsrc
|__ assets
| |__ images
| |__ styles (global styles)
|
|__ components (shared components)
|
|__ features
|__ Photo
|__ components
| |__ PhotoList
| |__ PhotoCard
| |__ PhotoForm
|
|__ pages
| |__ MainPage
| |__ AddEditPage
|__ photoSlice.js
|__ index.js// App.js
function App() {
return (
)
}function InputField(props) {
const {
field,
type, label, placeholder, disabled,
} = props;
const { name } = field;
return (
{label && {label}}
);
}RandomPhoto Props
RandomPhotoField
Formik
Yup
暂无开放 Issues,或尚未同步最近议题。