Skip to content

Conversation

@karisP
Copy link

@karisP karisP commented May 9, 2023

Description

A React/Typescript widget which accesses Septa Rails data from the fares.json provided and applies the data in a user-friendly form which calculates the ticket(s) price.

Notes

Please read my comments provided in the code. I have left notes on how I would complete the functionality with more time. If you open the console, you will see the data accessed by the api call and the form data once all the fields have been filled. I focused on keeping the styles very basic due to time constraints. In a situation with even more time, I might consider a refactor with each form field being a component that takes props for question, input type, and data. I hope you enjoy reading my code, and I look forward to your feedback!

Libraries

react-hook-form

Screenshots

Screenshot 2023-05-09 at 2 40 41 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant