My Dev Journey: Week 10

This week was the second week in the front end block of the course, and this week we spent a lot of time going further in depth with React.

If you’ve enjoyed any of my blog series, then maybe consider following me on Twitter and GitHub ? and I’d also …


This content originally appeared on DEV Community and was authored by Harry York

This week was the second week in the front end block of the course, and this week we spent a lot of time going further in depth with React.

If you've enjoyed any of my blog series, then maybe consider following me on Twitter and GitHub ? and I'd also really appreciate if you all could check out my new portfolio site ?? and maybe leave a few beginner project ideas in the comments to give me some inspiration!

What I've learnt this week

Data fetching

For the start of this week we used the Fetch API to make requests to endpoints to get the data back that we were going to be using in our apps. The fetch API was a good start but I prefered it when we started to use Axios, as I think it reads a lot clearer that fetch.

I spent most of this first day getting base functionality added in to my app that retrieves NASA Astronomy Pictures of the Day, for specified dates in input fields.

Styling with React

Building on top of the base functionality I added a couple of extra features in like beign able to search by a date range, and then got going on styling. I wanted it to be a fairly minimal site, but to use similar tones to the NASA logo, so that it all ties in, and was pretty happy with adjusting to styling with React.

One of the key principles from this lecture was on Mobile first design, and using media queries to display certain components styled in different ways because of screen sizes.

Another thing we learnt but I didn't have chance to apply was the use of CSS modules, something that I'd like to apply on a side project or by refactoring the code from this two-day sprint.

React Routing

Routing in React was a blessing after having spent the last week with really long App files. The routing makes sense, especially after creating our own backends, it made processes much more alike.

Context

Another issue I had with React at the start of the week was I felt like I was passing props through all over the place, which is where using Context allows me to have certain states to be seen globally across all components. This came in handy when wanting to tidy a lot of my prop chains up.

Resources I've found useful this week

CSS Tricks

CSS Tricks has been a great cheat-sheet style site, that has helped especially with flex-box bits.

React Router

React Router has also been great for seeing examples of setting up React Apps with Routing.

Figma

What's Figma? Figma is a pretty good way to quickly and collaboratively mock up the wireframes for an app and definitely helped us to start planning out what actually needed to be done first, rather than start aimlessly coding.


This content originally appeared on DEV Community and was authored by Harry York


Print Share Comment Cite Upload Translate Updates
APA

Harry York | Sciencx (2021-07-11T12:45:34+00:00) My Dev Journey: Week 10. Retrieved from https://www.scien.cx/2021/07/11/my-dev-journey-week-10/

MLA
" » My Dev Journey: Week 10." Harry York | Sciencx - Sunday July 11, 2021, https://www.scien.cx/2021/07/11/my-dev-journey-week-10/
HARVARD
Harry York | Sciencx Sunday July 11, 2021 » My Dev Journey: Week 10., viewed ,<https://www.scien.cx/2021/07/11/my-dev-journey-week-10/>
VANCOUVER
Harry York | Sciencx - » My Dev Journey: Week 10. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/07/11/my-dev-journey-week-10/
CHICAGO
" » My Dev Journey: Week 10." Harry York | Sciencx - Accessed . https://www.scien.cx/2021/07/11/my-dev-journey-week-10/
IEEE
" » My Dev Journey: Week 10." Harry York | Sciencx [Online]. Available: https://www.scien.cx/2021/07/11/my-dev-journey-week-10/. [Accessed: ]
rf:citation
» My Dev Journey: Week 10 | Harry York | Sciencx | https://www.scien.cx/2021/07/11/my-dev-journey-week-10/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.