lexical icon indicating copy to clipboard operation
lexical copied to clipboard

Bug: Uncommented Code in Getting Started with React Docs (https://lexical.dev/docs/getting-started/react)

Open hkiame opened this issue 9 months ago • 2 comments

Following the official Lexical documentation's guide on "Getting Started with React", there seems to be an issue with the provided code snippet.

Steps To Reproduce

  1. Navigate to the Lexical documentation page
  2. Locate the section titled "Creating Basic Rich Text Editor".
  3. The code example within this section appears to have uncommented code sections denoted by ...
const theme = {
  // Theme styling goes here
  ...
}

The current behavior

The presence of uncommented code (...) disrupts the code flow and might lead to errors or unexpected behavior when users try to copy and use the example directly in their projects.

The expected behavior

The code snippet should be a complete and functional example. Any sections intended to be omitted should be clearly commented out using // comments to avoid confusion and ensure users can easily copy and use the provided code.

const theme = {
  // Theme styling goes here
  // ...
}

hkiame avatar May 20 '24 08:05 hkiame