algolia / algolia/react-element-to-jsx-string

Console Error: Received `false` for a non-boolean attribute `copied`.

Open
#892 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
518
Forks
87
Avg merge
3h 56m
Merged PRs (30d)
3

Description

**// package.json**
```json
"dependencies": {
"next": "15.3.1",
"react": "^19.0.0",
"react-code-blocks": "^0.1.6",
"react-dom": "^19.0.0",
"react-element-to-jsx-string": "^17.0.1",
}
```

**// page.tsx**
```jsx
import { atomOneLight, atomOneDark, CopyBlock } from 'react-code-blocks';
import { useTheme } from 'next-themes';

......


```

**Console Error**
```
Received `false` for a non-boolean attribute `copied`.

If you want to write it to the DOM, pass a string instead: copied="false" or copied={value.toString()}.

If you used to conditionally omit it with copied={condition && value}, pass copied={condition ? value : undefined} instead.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.