Advice on Casing for Functions and File Names in React

1 replies
Last updated: May 23, 2020
More of a React question perhaps but is there somewhere I can see a consensus on casing for functions and file names in React? I’m all over the place.
May 23, 2020, 10:04 AM
Not sure if there actually is a consensus or a single ‘correct’ way, but I’ve seen people quote Airbnb’s Mostly reasonable approach to React and JSX in discussions on naming:
May 23, 2020, 10:13 AM – build remarkable experiences at scale

Sanity is a customizable solution that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Categorized in