npm install @types/react @types/react-dom @types/prop-types @types/node
-- commit to main push git checkout -b lab git checkout main
git checkout -b lab01 git add -A git commit -m 'lab01' git push --set-upstream origin lab01 git checkout main
form {
min-width: 300px;
+ max-height: 370px;
}
git checkout -b t-lab04 git add -A git commit -m 't-lab04' git push --set-upstream origin t-lab04
finish ts testing - form testing? - redux testing?
qa and create branches filling in test output translate to js
git checkout lab03 -f git clean -df git push --set-upstream origin lab03
git checkout lab04 -f git clean -df git push --set-upstream origin lab04
git checkout lab05 -f git clean -df git push --set-upstream origin lab05
//TODO: Do I need to install TS Lint to get linting working? https://medium.com/@rossbulat/how-to-use-typescript-with-react-and-redux-a118b1e02b76
export function deleteProject( project: Project ): ThunkAction<void, ProjectState, null, Action> { return (dispatch: any) => { if (!project.id) return; dispatch({ type: DELETE_PROJECT_REQUEST }); return projectAPI .delete(project.id) .then(data => { dispatch({ type: DELETE_PROJECT_SUCCESS, payload: project }); }) .catch(error => { dispatch({ type: DELETE_PROJECT_FAILURE, payload: error }); }); };
removeProject(project){ - - - this.props.onRemove(project) }