React, Flexbox

I want you to code a simple counter between 0 and 10 which can be decreased

with one button and increased by another and the counter should be styled with CSS. Flexbox should be used at some point to evenly distribute elements in a row or column. There obviously also needs to be a point of using the Flexbox, i.e. adding the attribute should make a visible difference.


● After the App component is loaded into the DOM, it should make an axios HTTP GET

request to the Github repository styled-components with

“[login to view URL]” and display the

repository’s description returned by the request with the javascript “alert” function.

● When the counter is at 0, the decrease button should be disabled. Same goes for the

increase button when the counter is at 10.

● When the counter is at 3, another button should appear. After this new button is

clicked, a checkbox should appear. The checkbox should be present for all counter

values, except for 10. It should also not re-render if its props remain the same for

performance reasons.

Tip: You can make a [login to view URL] call in the checkbox’s render function to see

if it re-renders when its parent re-renders

● When the checkbox is removed from the DOM, the counter should be reset to 0 if the

checkbox was checked.

● When the counter is at 5, all buttons should have a different text color than they

otherwise have.

● After the counter has increased from 6 to 7 (i.e. not from 8 to 7), it should be set to 9

if the checkbox is visible and 8 if it isn’t. You should then call the window’s alert

function saying “I was 6 and now I am [NEW COUNT]”, e.g “I was 6 and now I am 9”

if the checkbox is visible. This needs to be done by injecting the new count into the

string “I was 6 and now I am “, i.e. you can not write to separate versions of the string

depending on the new count.


● No direct DOM manipulation is allowed, e.g. with jQuery or

[login to view URL]

● You are not allowed to add anything other than the root-div (<div id="root"></div>) to

the HTML box.

● You are not allowed to store data in the window’s local/session storage, since that is

not the React “way”. All data needs to come from a state or props.


● Remember to bind any callback functions you pass down as props.

● Think about if you want to use a class or function component for any children to App.

● Think scalability. How many button components do you really need?

● Since you need to access the checked value of the checkbox at some point, it is

advisable for you to make the checkbox a controlled input component.

Habilidades: Javascript, CSS, HTML, React.js Framework

Veja mais: react-flexbox-grid github, can t resolve react flexbox grid, react flexbox grid styled components, react native flexbox, how to use flex in react js, react layout, react flexbox layout, react native grid, html input box char count, count word input coldfusion, count numbers input text area, limit word count javascript input box, find count part outsource input data, mips string count words input, phpmyadmin import csv invalid field count csv input, reset tweet count, reset twitter count, reset twitter tweet count, count reset javascript, reset page count canon lbp 3300

Acerca do Empregador:
( 1 comentário ) Kristianstad, Sweden

ID do Projeto: #23455930

Concedido a:


Hello sir. I can do it in no time by maintaining all react standards and best practices. Everything will be done according to the doc. I will add a simple and minimalistic design with css3 flexbox. I have been workin Mais

$30 USD em 2 dias
(4 Comentários)

5 freelancers estão ofertando em média $43 para esse trabalho


5 years experience in Reactjs / Redux / Angular /Vue / Nodejs / ASP.NET / PHP / Django / Backned - Frontend development! All of our programming skills: *Front-end: - HTML, HTML5, JSON. - JAVASCRIPT (Ajax, AngularJS Mais

$35 USD in 5 dias
(24 Comentários)

Dear, Client. My recent project: [login to view URL] (Node/Express + React + Redux + Firebase storage/store + MongoDB) My potofolio: [login to view URL] My portofolio: htt Mais

$100 USD em 1 dia
(1 Comentário)

Hi there, I've read your job description and I know I'm new here but I Know I can do this, my last 2 projects were in react and one of them was focused on flexbox. you also got me curious to why are you using this fo Mais

$30 USD in 2 dias
(0 Comentários)

hi there, I have very good experience in React and its core principles, JS6 and OOP I can implement your component with best practice and code design and really high components structure I will implement your counter u Mais

$20 USD em 1 dia
(0 Comentários)