Skip to content

[Question] How to render each fixture file as a separate page #7

Open
@char8x

Description

@char8x

When using the same configuration of this repo, all fixtures seem to be packaged on the same page. If there are global styles, they will affect each other. How to modify the configuration to render the components in the fixture as independent pages?

// style.css
body {
    background: skyblue;
}
// A.fixture.jsx
"use client";

import "./style.css";

export default function A() {
  return <div>Hello</div>;
}
// B.fixture.jsx
"use client";

export default function B() {
  return <div>World</div>;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions