Skip to content

Unable to add images - Blank screen when adding images (Image Element) #3121

Closed Answered by Maxx59
Maxx59 asked this question in Q&A
Discussion options

You must be logged in to vote

I have a preview section where I transform json into html

useEffect(() => {
        const element = createElement("div", null,
            contentJson.map((element) => {
                let className:string="";
                switch (element.type){
                    case "p":
                        className += " text-lg"
                        break;
                    case "h1":
                        className += " text-4xl font-bold mt-0 mb-1"
                        break;
                    case "h2":
                        className += " text-2xl font-semibold mb-px mt-[1.4em]"
                        break;
                    case "h3":
                        className…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by 12joan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #3120 on April 14, 2024 10:15.