#Astro Markdown in JSX

40 messages · Page 1 of 1 (latest)

slow juniper
#

From @ Naco: Is there a way to render the Markdown <Content /> component inside JSX a component?

azure jolt
#

hi bro

#

nice to meet u

slow juniper
#

Welcome @azure jolt, nice to have you here!

#

Why do you particularly want to render your markdown in JSX? You could do that in an Astro component

azure jolt
#

ye, i know it

#

but i need use jsx component to render pagelist paging

#

such as pagelist loading animation & loadingmore script

#

in astro script to done it so cumbersome

#

sry , it's too late. I think I have a plan to implement it through the slot, and I'm go sleep. Have a wonderful day.

slow juniper
#

Yeah using slot is a viable way to that, let me know if you have issues implementing that

azure jolt
#

bro

#

online?

#

@slow juniper

slow juniper
azure jolt
#

Can you help me look at a question

#

this my project

#

when i import Icon "Play"

#

run "yarn build"

#

will be throw error

#

but in "yarn dev" mode ,no errors occurred

#

when i drop import Icon, there won't be any error info

#

so funny

#

use --verbose, no more info

#

but in .astro import Icon no throw error.

azure jolt
#

ok fine

slow juniper
#

I was away for a moment

#

This error was reported a few times. What's logged is quite misleading though as this doesn't seem to affect your build (at least what I found in all the reports)

#

Using the icon should just work fine 🙂

#

Unless you're actually bumping up on something else not on frame?

azure jolt
#

ok thx bro

slow juniper
#

Probably, it's been reported a few times so I'm sure our maintainers are aware of it

vocal tusk
# azure jolt

quick nitpick! you have quotes around {props.avatar} for the img src (both of them)