The Wayback Machine - https://web.archive.org/web/20200919110343/https://github.com/topics/best-practices
Skip to content
#

best-practices

Here are 962 public repositories matching this topic...

antross
antross commented Sep 7, 2020

I've hit this one a few times since I'm so used to writing selectors instead of plain class names. It actually adds/remove a className which includes the leading "." as part of the name which is almost never what you want. Seems like a warning/error here would be helpful as you can easily be left scratching your head about this for awhile.

E.g.

<div id="foo" class="bar">

I

Improve this page

Add a description, image, and links to the best-practices topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the best-practices topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.