An open API service indexing awesome lists of open source software.

https://github.com/smartive/stencil-nextjs-example

This project shows how we got Stencil Web Components working inside the Next.js app directory.
https://github.com/smartive/stencil-nextjs-example

Last synced: about 1 year ago
JSON representation

This project shows how we got Stencil Web Components working inside the Next.js app directory.

Awesome Lists containing this project

README

          

# Stencil within Next.js App Router Project

This project demonstrates approaches for integrating Stencil Web Components into a Next.js app directory with the help of our custom Stencil [output target plugin](https://github.com/smartive/stencil-nextjs-example/tree/main/packages/stencil-react-ssr-output-target).

**Live Demo**: [stencil-nextjs-example-app.vercel.app](https://stencil-nextjs-example-app.vercel.app)

**Local Setup**:
- Install dependencies: `npm ci`
- Start development server: `npm run dev:app`
- Start with production build: `npm run start:app`
- Open browser: [http://localhost:3000](http://localhost:3000)

> [!TIP]
> Disable JavaScript and reload the page to see the difference between the rendered components.