- Install React
npx create-react-app dev-commerce-front
; - Create
user
folder with Signup and Signin Component; - Install
react-router-dom
; - Create a Routes Component and render it instead of App;
- Add Home Component;
- Clean
public/index.html
and add Bootstrap 4 css via CDN; - Create a Menu Component with Link and withRouter();
- Create a Layout Component with defaultProps;
- Add Menu Compontent to Layout Component;
- Import Layout Component inside existing pages;
- Create .env to import 'secret variables' via config.js;
- Create SignUp Form inside
Signup.js
; - Create
handleChange
andclickSubmit
handlers in the same file; - Create
signup
method using fetch() to POST data on the backend insideauth
folder; - Add
showError
andshowSuccess
methods show modals on success or show errors to the user;