Skip to content

Commit

Permalink
Changed implementation example from let to const
Browse files Browse the repository at this point in the history
  • Loading branch information
wozitto committed Apr 11, 2024
1 parent a7826c4 commit c72be1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ classNames('a', arr); // => 'a b c'
If you're in an environment that supports [computed keys](https://www.ecma-international.org/ecma-262/6.0/#sec-object-initializer) (available in ES2015 and Babel) you can use dynamic class names:

```js
let buttonType = 'primary';
const buttonType = 'primary';
classNames({ [`btn-${buttonType}`]: true });
```

Expand Down

0 comments on commit c72be1f

Please sign in to comment.