Git Product home page Git Product logo

frontend-assessment's Introduction

Frontend Assessment

This is my solution to the Frontend Engineering candidate assessment. Per the spec, I focused more on code quality and data manipulation.

Task

I Used the file schema.json to create an interactive page.

This solution:

  • Displays the data from the file grouped into sections as a side navigation menu.
  • Displays the details of a property on the page when a menu item is clicked
  • Expands a group item menu and displays all properties in that group when clicked
  • Navigate to the details in the main section for that property when a sub-element is clicked

Setup

same as the original repo:

  • git clone this repository
  • npm install
  • npm start

Notes

I considered using Context or render props to pass a value representing the "active group" to dynamically render content from only the active group but decided on this simpler solution only utilizing a single hook on the sidenav component. I believe this solution meets the criteria as outlined.

update: I realized I should probably make an AJAX call instead of requiring in the schema.json so I changed the App component into a container to do that. After this, dyanimic rendering was fairly trivial to wire up so I removed the hook and passed down the method to do that as well.

frontend-assessment's People

Contributors

cutofffrequency avatar colinrtaylor avatar juliereitter avatar

Watchers

 avatar

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.