Hacker News new | past | comments | ask | show | jobs | submit login

If you don't like the "boilerplate" of a single class definition, use a functional component, which is just a function that returns JSX, that is also a component. It could literally not be more straightforward.

Or could you not hear me over the sound of that axe you're grinding? :)




*stateless components




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: