Property Initializers: What, Why, and How to Use It

Audy Tanudjaja
ITNEXT
Published in
6 min readFeb 9, 2018

--

The feeling when you don’t have to do any bindings anymore to your methods, picture from Unsplash

Click here to share this article on LinkedIn »

The new class “property initializers” allows you to define methods (or any property) in your React components using regular ES6 classes without worrying about binding. Yes, I’ll say that again, without binding. The idea behind it is to assign an arrow function to a property which will act like a normal method, and automatically…

--

--