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 greet = (name: string) => `Hello, ${name}!`;
const user = { name: 'Nils' };
const msg = greet(user.name);
console.log(msg);
 
1function·greet(name)·{
2→return·`Hello,·${name}!`;
3}
greet.ts
export function greet(name: string) {
return `Hello, ${name}!`;
}
 
// Ship it
--primary: #f43f5e;
--accent: #8b5cf6;
--surface: #0ea5e9;
const value = user.prfile.name;
  • Rename to 'profile'Preferred
  • Add missing property 'prfile'
  • Disable rule for this line