You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a project where I want to programmatically convert JSON data into a reveal.js presentation via react. So far, I'm able to successfully render something like:
<div ref={deckDivRef} className="reveal">
<div className="slides">
{sections.length > 0 ? (
sections.map((s) => <section key={s.key}>{s.title}</section>)
) : (
<section>Loading...</section> // Ensure at least one slide exists
)}
</div>
</div>
But if I try to extract the slide into a separate (very basic) component like so:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm working on a project where I want to programmatically convert JSON data into a reveal.js presentation via react. So far, I'm able to successfully render something like:
But if I try to extract the slide into a separate (very basic) component like so:
reveal.js breaks with the following error:
Any ideas why?
Beta Was this translation helpful? Give feedback.
All reactions