This library allows for the usage of the Reveal.js within either a NextJS or ReactJS framework. In short, it is a benign wrapper of (reveal.js)[https://revealjs.com/] that allows you to build slides in a componentized fashion. My recommendation would be to use NextJS for the simple directory routing structure they have.
A richer library of individual reveal.js components and abstractions is still in progress. In the meantime, using the raw/vanilla HTML components is adequate.
If you don't already have a ReactJS or NextJS project, you can create one:
npx create-react-app myapp
npx create-next-app myapp
With npm:
npm install reveal-react
With yarn:
yarn add reveal-react
import { RevealReact } from 'reveal-react';
export default function Component() {
return (
<RevealReact>
<section>
<h2>Title</h2>
<p>Body</p>
</section>
<section>
<h2>Title</h2>
<p>Body</p>
</section>
</RevealReact>
)
}
import { RevealNext } from 'reveal-react';
export default function Component() {
return (
<RevealNext>
<section>
<h2>Title</h2>
<p>Body</p>
</section>
<section>
<h2>Title</h2>
<p>Body</p>
</section>
</RevealNext>
)
}