Git Product home page Git Product logo

coding-problems-to-solve's Introduction

Coding Problems To Solve

1)

Very simple: React.js, JavaScript, TypeScript

DO NOT edit any code, except: Just add little code after this line:

let myRef = selectedDate;

so the year will be rendered as 2099 after 1 second timeout.

Problem: https://codesandbox.io/s/elegant-stallman-s3guu?file=/src/App.tsx

Solution: https://codesandbox.io/s/epic-stonebraker-po87l?file=/src/App.tsx


2)

Let the inputs of the textareas survive after tab refresh, even for duplicated tabs, and the inputs must be independent of each other (typing in one textarea should not cause changing the input in the neighboring textareas or in the textareas of the neighboring tabs). And also, if all tabs are closed, then if one tab opens again, the input text must be the very last changed text of the textareas of the previous tabs.
React.js, JavaScript, TypeScript

DO NOT edit any code, except the body of the useStateOfSessionAndLocalStorage hook
Problem: https://codesandbox.io/s/vibrant-pine-6rhsk?file=/src/App.tsx

Solution: https://codesandbox.io/s/elated-dirac-8qxvf?file=/src/App.tsx


3)

The countUp must count from 0 to 20000 in about 10-15 seconds.
Rule 1) from 0 to 19990 countUp must be linear (useEasing={false}) in time .
Rule 2) from 19991 to 20000 countUp must be smoothly slowing down (non-linear --> useEasing={true}) in time of about 5-10 seconds.

First rule is already working, now make the second rule work too.

DO NOT edit any code, except the body of the onEnd function. Do not write number values manually, use the variables of the component
Problem: https://codesandbox.io/s/cranky-turing-x0pub?file=/src/App.tsx

Solution: https://codesandbox.io/s/heuristic-flower-um6f0?file=/src/App.tsx


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.