
Merging a Pull Request from GitHub - Live Coding with Jesse
video description
Date: 2022-03-14
Comments and reviews: 2
Boomer
Hi Jesse, also a good house keeping task in class components is to destructure this.props at the top of the render() method to help DRY your components (easier to read as well). i.e for Layout:
render() -
const - title, description, headerType, children- = this.props;
....
-
You can also rename while destructuring as well as target nested properties. React Router 4 provides good examples of destructuring in stateless functional components.
reply
Hi Jesse, also a good house keeping task in class components is to destructure this.props at the top of the render() method to help DRY your components (easier to read as well). i.e for Layout:
render() -
const - title, description, headerType, children- = this.props;
....
-
You can also rename while destructuring as well as target nested properties. React Router 4 provides good examples of destructuring in stateless functional components.
reply
Boomer
Hi Jesse,
I might actually do a pull request. I'm a bit of a noob when it comes to GH and collaborating but will keep it simple for the initial and build it up over time.
reply
Hi Jesse,
I might actually do a pull request. I'm a bit of a noob when it comes to GH and collaborating but will keep it simple for the initial and build it up over time.
reply
Add a review, comment
Other channel videos















