Git Product home page Git Product logo

ebay-task's Introduction

eBay Front End Developer Test

For this test we would like you to create a small React Application. The purpose of this application is to parse the attached ‘data.js’ file and render this on the page as HTML. The data is an object and within that object is a ‘blocks’ array of objects. Each object in this ‘blocks’ array has a ‘type’ parameter. For example, the first object:

{
  type: 'header',
  data: {
    text: '20% off eligible items',
  },
},

This has a type ‘header’ and a data object. This means this object should be rendered on the page as an h1 element and the text in this data object should be in this header. The second object:

{
 type: 'header',
 data: {
   text: 'Terms & conditions',
   level: 2,
 },
},

This is also of type ‘header’ but in the data object it has ‘level’: 2. So this would render as an h2 element.

Therefore, for this test we would require there be some sort of trigger (button for example) on initial load that when pressed would parse this object and render it out onto the page. The finished page when rendered should look something like this: https://pages.ebay.com.au/Buyer_coupons/psnooze/index_app.html

This is a live page on the eBay Website.

The purpose of this test is to show that you are able to parse data and also you have a basic understanding of how react works. Regarding the complexity of the solution we will leave that up to you. Please bear in mind whilst we always appreciate ‘clever’ solutions there is also a balance required to implement an efficient solution.

Please submit a link to a github repo with your solution once completed.

We look forward to seeing your solutions!

ebay-task's People

Contributors

tchappel avatar

Watchers

James Cloos avatar  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.