“A common pattern in React is for a component to return multiple elements. Fragments let you group a list of children without adding extra nodes to the DOM.”— React Docs

Why? Regular HTML attributes also typically use double quotes instead of single, so JSX attributes mirror this convention.
- Airbnb docs

Link: https://github.com/airbnb/javascript/tree/master/react

Why? Underscore prefixes are sometimes used as a convention in other languages to denote privacy. But, unlike those languages, there is no native support for privacy in JavaScript, everything is public. Regardless of your intentions, adding underscore prefixes to your properties does not actually make them private, and any property (underscore-prefixed or not) should be treated as being public.

-Airbnb Docs

--

--

--

Software Developer | https://www.mohammadfaisal.dev/

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mohammad Faisal

Mohammad Faisal

Software Developer | https://www.mohammadfaisal.dev/

More from Medium

THE MOST COMMON PC BUILDING MISTAKES AND HOW TO AVOID THEM

100 Fast List Building Methods And Techniques

100 Fast List Building Methods And Techniques

Week4 report — GeorgeEloit Digital Project

Auburn University

Rendering Child Components with React.memo