100 Days of Code: Day 76

Home / Technology / Web Development / 100 Days of Code: Day 76
Today was spent working my way through some of the React challenges at Free Code Camp as I continue working towards the Front End Libraries certification.

[vc_row css=”.vc_custom_1526680382655{margin-top: 15px !important;margin-bottom: 60px !important;padding-right: 10% !important;padding-left: 10% !important;}”][vc_column][vc_progress_bar values=”%5B%7B%22label%22%3A%22Progress%22%2C%22value%22%3A%2276%22%2C%22color%22%3A%22blue%22%7D%5D” title=”100 Days of Code, Round 1″ percentage_value=”27″ title_color=”#3e3e3e” bar_color=”#1b7da9″ track_height=”20px” track_color=”#e7f6fc” m=”20″ extra_class=”” units=”%”][/vc_column][/vc_row][vc_row][vc_column][vc_custom_heading text=”Goals For Today:” font_container=”tag:h3|text_align:left” use_theme_fonts=”yes”][ultimate_icon_list icon_size=”16″ icon_margin=”20″][ultimate_icon_list_item icon_type=”custom” icon_img=”id^4091|url^https://www.blissfullemon.com/wp-content/uploads/2018/05/done.png|caption^null|alt^null|title^done|description^null”]Work on React challenges at Free Code Camp[/ultimate_icon_list_item][/ultimate_icon_list][vc_column_text]It has been a pretty good day in the coding world today. I had to do a few things this afternoon, so I did not spend as much time coding as usual. Fortunately, the little time I had was very well spent.

I did a bit of research on a few things I didn’t completely understand and was able to get through 16 challenges. That’s not too bad. I’ll have more time tomorrow to finish the last 19.

On a side note, I am really happy with my approach to learning React. That is, watching video-based courses prior to working through the FCC React challenges. Now that I am back to the challenges, I have a much better understanding of what I am reading. The written challenges complement the video content very well. Some of concepts are explained better within the challenges, while others were explained more clearly in the video. And each contains information that the other lacks.

When I learn Redux, I think I may take the same approach. I like combining methods and resources so I can get the best understanding of the concepts. Then, of course, I can fill in any gaps with additional research.

What I Learned Today

  • How to pass props (properties) of the parent class to stateless functional components
  • Passing an array as props from the parent class to the child component
  • Defining a default value for props passed to the child component
  • Overriding the default value within the child component
  • How to specify a property type by setting propTypes on a component
  • Specifying that a property is required using the isRequired keyword
  • Using the this keyword to access the props of the parent component when the child component is an ES6 class component instead of a stateless functional component
  • The difference between stateless functional components, stateful components that extend the React.Component class, and stateful React components, which maintain their own internal state
  • How to create a stateful component by initializing the state of the React component within its constructor
  • Using this.state to access the state of the component and render the value of state to the user interface
  • Setting the state using this.setState
  • Explicitly binding this to a class inside its constructor in order to allow methods to access the props of the class without this returning as undefined
  • Managing the state of a component and using said state to control other elements, like the visibility of a UI element
  • How to use click handlers with buttons to set the state of a component
  • Creating controlled inputs and forms, as recommended in the React documentation


Let's chat!

%d bloggers like this: