News for hackers. Stuff that matters.
Re:Show HN: Instagram like stories in React - react-insta-st... by gatherhunterer on Sunday November 10, 2019 @07:15PM (#21501132)
const something = function () {};

That is unlike any javascript function declaration I have ever seen. Why not just use the declaration syntax or the assignment/arrow syntax? It’s just a keyword and an operator that take up space.

Re:Show HN: Instagram like stories in React - react-insta-st... by mohitk05 on Sunday November 10, 2019 @09:26PM (#21501658)
Perfectly makes sense, thanks! I must have missed it as it was earlier export default function, will update this.