Skip to content

activeClassName not supported in 3.0.0 with esModuleInterop: true  #333

Open
@patrickhulce

Description

@patrickhulce

activeClassName gets passed through to the a element as a regular attribute and is not used in the matching-style that is documented in the README.

It seems to be because the Link component defined in match.js is not actually exported. Instead the regular a passthrough component is exported.

preact-router/src/index.js

Lines 251 to 253 in 3eb5b31

const Link = (props) => (
createElement('a', assign({ onClick: handleLinkClick }, props))
);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions