mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 20:53:08 +00:00
[Docs] Add note on classSet deprecation
This commit is contained in:
@@ -6,6 +6,10 @@ prev: two-way-binding-helpers.html
|
||||
next: test-utils.html
|
||||
---
|
||||
|
||||
> NOTE:
|
||||
>
|
||||
> This module now exists independently at [JedWatson/classnames](https://github.com/JedWatson/classnames) and is React-agnostic. The add-on here will thus be removed in the future.
|
||||
|
||||
`classSet()` is a neat utility for easily manipulating the DOM `class` string.
|
||||
|
||||
Here's a common scenario and its solution without `classSet()`:
|
||||
|
||||
Reference in New Issue
Block a user