Skip to content

Devin Vinson

  • Contact
  • About
Devin Vinson

fat arrow

Arrow function as class function in ES6

If you’ve been using create-react-app and tried to build things on your own you might have done/seen/used handleClick = () => { // do thing on click } This comes from the Class properties transform plugin from Babel: https://babeljs.io/docs/plugins/transform-class-properties/ So if you try to build a project on your own you’ll need to include it…

Read More Arrow function as class function in ES6Continue

© 2022 Devin Vinson - WordPress Theme by Kadence WP

  • Contact
  • About