Skip to content

Commit

Permalink
roll back createPortal()
Browse files Browse the repository at this point in the history
  • Loading branch information
thedannywahl committed Mar 1, 2024
1 parent 6867af5 commit f75c286
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion isp-site/src/routes/markdownBrand.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Modules
import React, { useState, useEffect } from "react";
import * as ReactDOM from "react-dom/client";
import Markdown from "react-markdown";
import remarkGfm from "remark-gfm";
import remarkGemoji from "remark-gemoji";
Expand Down Expand Up @@ -48,7 +49,7 @@ export default function MarkdownBrand({ readme, brand }) {
if (branches.length > 0) {
for (const branch of branches) {
Explorer(brand.toLowerCase(), branch, l).then((table) => {
createPortal(
ReactDOM.createRoot(branch).render(
<Markdown
children={table}
remarkPlugins={[remarkGfm, remarkGemoji]}
Expand Down

0 comments on commit f75c286

Please sign in to comment.