When initialliy asked how to pass props from the child to the parent, I responded “Props are only passed from parent to child.” I was wrong. What was even more concerning was that I had already been passing props from child to parent but was unaware of how to explain it. To be honest, due to React’s one-way data flow, it often can be tricky to see how data can flow from child to parent. Let’s take a moment to explore how props move from child to parent in React.
In order to master redux, it is vitally important that you have a clear understanding of how to pass data from the Redux store throughtout your application. Learning how to use the Provider Component and call the connect function are therefore essential to understanding Redux. The Provider Component makes the Redux store(global state) available to any nested components that may need it. After inmporting Provider from react-redux, The Provider Component connects to a root component(usually
I must admit that compared to our last three modules, Javascript was the hardest for me to wrap my mind around. First, I was challenged by the changes in syntax. Then, I had a hard time figuring out how to debug with breakpoints and the chrome dev tools. Finally, literally in the last week of the curiculum things started to click. For my Javascript project, I decided to build on the examples we had used in study group to create a very simple image portfolio to showcase what I have learned.
As a full time teacher, mom, wife and part-time software engineer student I have my hands full. My 18 month old toddler is the size of a three year old. Literally! So while I try to divide my attention between him and the many other task on my plate, he constanly finds things to get into. Hence, every other day I log into Amazon.com to find the newest tool, gadget, or baby product that will help baby proof the house and reassure me that my little guy is safe while I work. Unfortunately alot of the reviews are more focused on how well a child likes the product or how pretty it is rather than how safe it is. This brought me to the idea behind my Rails project. Why not create a web application that specifically allows people to add and review the baby products that they own with a focus on what parents really care about safety.
“Shotgun is a small Ruby gem that makes it easier to develop and test Rack-based Ruby web applications locally by starting Rack with automatic code reloading”(Learn.Co, 2020). Understanding how to use the shotgun development server is an imperative part of completing the mod 2 Sinatra project. One night when I was coding through my Sinatra lessons in mod 2, I tried to run shotgun and ran into an error message that took me about 45 minutes to solve. The terminal error stated that I had a runtime error due to a port in use. In layman’s terms this meant that I was unable to run the shotgun developement server in my new terminal because I had a port (server connection) in use somewhere else that I was not aware of.