Git Product home page Git Product logo

ctd-react-albatross's Introduction

Welcome to the Albatross React Class!

During class you will be building TWO React apps...

The FIRST will be a BLOG APP that you build while working through the class textbook. The blog app you will create completely from scratch following the book instructions. You should keep your work for the blog app in a separate repository.

The SECOND will be a TO-DO LIST APP that you will build as extra coding practice during your coding assignments throughout the class.

Click here to redirect to the Wiki for this repository.
Read the Project Setup section and then follow the link to the General Instructions to get started.

ctd-react-albatross's People

Contributors

mamooredesigns avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ctd-react-albatross's Issues

Lesson 1.8 API request useage

The instructions have the coder go through the code base and make updates to components based on information coming from the Airtable API. I argue that this is not a best practice. We, as developers, change api services out periodically so should write code that is loosely coupled from our data sources.

The data should be serialized (convert the shape of the data) so that it matches what the application expects. For this specific scenario, a map can convert the response into objects that the code base can already work with.

202209_0809AM-Code

This is much better than going into the TodoListItem and changing the props for title as that component shouldn't care at all about data inbound from an API.

Lesson 1.6 Add Auto-Focus to Input

Instructions say to "Define a useEffect React hook with an empty dependency list". This could be a bit confusing as the dependency list is an optional array. The main technique used to run useEffect only once is to provide an empty array as the 2nd arg.

The wording, ..."with an empty list" can be in easily misinterpreted, causing the student to provide an empty array. Wording should be updated to make in unambiguous that no dependency list should be added.

Suggest changing it to something like, "Define a useEffect React hook, omitting the second argent to ensure the useEffect runs on each change."

202207_0715PM-Brave Browser

Lesson 1.7 stretch goal recommendation

At this point in the app, the "Add" button is still active while the timeout is counting down. A fast user is able to create and submit a todo in less than 2 seconds. When this happens, the resolver will overwrite that speedily added todo.

Recommended stretch goal: disable the add button until the persisted todos are loaded into the app. Maybe even changing its text to please wait to submit or something to that effect.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.