~/talk

Building Tesla’s Battery Range Calculator with Vue.js or ReactJS

Talkat CityJS Conference 2020 · 2020-09-02..09-04· [react, vue]

Built a Tesla Battery Range Calculator twice using Vue.js and React, wired to a lookup table backend that returns ranges by model given speed, temperature, wheel size and climate. Vue build claims 60 KB vs 100 KB for React and sketches a 100 vs 200 lines advantage in code; Angular is ~500 KB. Examples include model 60 → 224 miles at 45 mph, −10°C, 19" wheels with climate on and ~267 miles for a default case. Performance and UI parity are demonstrated.

AI-written summary · about

  1. 0:00Introduction
  2. 0:59Tesla range calculator demo
  3. 2:27Vue.js basics overview
  4. 3:08Simple Vue.js app example
  5. 4:54Vue.js component structure
  6. 6:39Vue.js app entry point
  7. 8:07Vue.js component logic
  8. 10:16Tesla battery component details
  9. 12:49Passing data in Vue.js
  10. 13:52Child components in Vue.js
  11. 15:17React basics overview
  12. 15:38React component structure
  13. 17:22React props and state
  14. 18:46React app entry point
  15. 19:50React functional components
  16. 20:54React state management
  17. 21:59Passing data in React
  18. 23:47React state changes
  19. 25:31Recalculating stats in React
  20. 26:36Vue vs React comparison
  21. 28:01Workshop resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.