Giter VIP home page Giter VIP logo

caroussel.react's Introduction

Tesla Battery Range Calculator in React

Getting started

  • yarn To install all the dependencies for this Hackjam. If you don't have yarn installed, install it via npm i yarn
  • yarn start To start the website locally.
  • Navigate to http://localhost:3000/ To see the website running, full of bugs :)

First things first

We've left a few bugs in the website, that you'll have to fix in order to understand the basic concepts of React

The index.js file is the entry point of the site, it is here that your first component is mounted and rendered.

App.js

This is the first component mounted by React. Fix the errors in this file before moving :)

The logo seems to be missing, try to display it via the img tag

Tesla Battery Component

This component is quite huge and buggy! You have to fix the templates errors before moving on, we introduced a few bugs there, find them and exterminate them!

There are also a few things not working in the methods :)

After the component fix

If you managed to fix all the bugs in this component, you maybe noticed a few comments in the template. Try to break this huge component into smaller ones, following the comments :)

You'll have to play with the props and the and the local state

Bonus

If you reached this point, congratulations!

See the state in the TeslaBatteryComponent? If you go on Tesla's website, you can grab real data and plug them into your app!

Too easy for you? Use Redux to manage the state of your app :)

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.