Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Make component source link clickable #625

@gaearon

Description

@gaearon

It would be nice if the component source link in the right bottom corner was clickable.

I'm not sure if this is doable. Unlike "Show Source", we don't want to navigate to function definition, but to createElement call. We can only do so if the user has babel-plugin-transform-react-jsx-source plugin, but it is enabled in development for projects generated with Create React App.

All information we'd have is filename and line number. While this may not be enough in Chrome, it might be enough for Electron, so maybe we should at least enable this feature for Electron shell. (See #588 for related PR).

How "Show Source" works:

Here is the link I want to make clickable:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions