Hacker News new | ask | show | jobs
by aabbcc1241 1038 days ago
The render function is a pure function returning jsx based on the input, not invoking any stateful operation like "functional hook".

So this style of code is fine in react