Skip to content

stylesheet gets applied to wrong page #230

Closed
@KotlinIsland

Description

@KotlinIsland

I'm not exactly sure what causes this to happen, but:

With the hello-world template

edit index.tsx to:

import React from "react";

export default function Home() {
  return (
    <div>
      <head>
        <link rel="stylesheet" href="../style/index.css" />
      </head>
      <span>styled</span>
    </div>
  );
}

create a second page 'other.tsx;:

import React from "react";

export default function Home() {
  return (
    <div>
      <span>other</span>
    </div>
  );
}

mess around with the tsx files for a but, eventually the other page will load with the index.css style sheet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✘ bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions