* refactor: replace art template with jsx * fix: tsx files * fix: renderToString import * fix: hono html raw import * feat: remove art
13 lines
245 B
TypeScript
13 lines
245 B
TypeScript
import { renderToString } from 'hono/jsx/dom/server';
|
|
|
|
const courseDesc = (picurl, desc) =>
|
|
renderToString(
|
|
<>
|
|
<img src={picurl} />
|
|
<br />
|
|
{desc}
|
|
</>
|
|
);
|
|
|
|
export default { courseDesc };
|