TODO Comment

1// TODO migrate to server components
2// FIXME handles null state poorly
3// NOTE revisit once design lock lands
About this piece

TODO Comment

Italic comment lines with colored TODO, FIXME, NOTE, or HACK tags.

Usage

The import and the props worth knowing about, in one place.

import { Editor28 } from "@/components/beste/piece/editor28";

<Editor28
  comments={[
    {
      "tag": "TODO",
      "text": "migrate to server components"
    },
    {
      "tag": "FIXME",
      "text": "handles null state poorly"
    },
    {
      "tag": "NOTE",
      "text": "revisit once design lock lands"
    }
  ]}
  bordered={false}
/>

More Editor pieces

View all Editor
const user = { name: 'Nils' };
const msg = greet(user.name);
console.log(msg);
 
const greet = (name: string) => `Hello, ${name}!`;
--primary: #f43f5e;
--accent: #8b5cf6;
--surface: #0ea5e9;
const value = user.prfile.name;
  • Rename to 'profile'Preferred
  • Add missing property 'prfile'
  • Disable rule for this line
1function·greet(name)·{
2→return·`Hello,·${name}!`;
3}
Your page looks empty

Start by adding your first block.