Skip to content

"Uncaught ReferenceError: React is not defined" when using Router #19

@kee-oth

Description

@kee-oth

I'm getting Uncaught ReferenceError: React is not defined when running the below code. I'm not sure why React is in the equation here. What am I missing about how this works?

import { Router, pathIntegration } from '@rturnq/solid-router';

const Root = () => {
  return (
    <Router integration={pathIntegration()}>
      <h1>App</h1>
    </Router>
  );
};

export default Root;

Versions:

"@rturnq/solid-router": "^0.2.6",
"solid-js": "^0.26.5",

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions