Coder Social home page Coder Social logo

hearthsim_useago's Introduction

HearthSim React Assessment

Welcome to the HearthSim React assessment. This project was bootstrapped with Create React App.

Goal

This assessment is to ensure you have basic knowledge of React and HTML. You should probably be able to complete it in around 20 minutes.

Your task is to update the files in src/, so that when opened, the app behaves as follows:

  1. When the page opens, the text "Last Updated: Just now" is visible, with a button next to it
  2. After 10 seconds, the text becomes "Last Updated: A few seconds ago"
  3. After 60 seconds, and on every further full minute, the text becomes: "Last Updated: X minute(s) ago" where X is the number of full minutes that has passed
  4. When clicking the button, the (invisible) timer starts over

Please implement the behaviour above using a new "useAge" hook that you created.

For this basic assessment you do not need to add any tests or styling. You can also keep documentation minimal.

You're free to do any research you need during the test. Please stick to the template and the behaviours above.

Get Started

First, run npm install in the project directory. Then, run:

npm start

Open http://localhost:3000 to view the App in the browser.

hearthsim_useago's People

Contributors

printer130 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.