question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it difficult to make opening import file of imported file?

See original GitHub issue

Is it difficult in realization, when we click by Label open app/forms/Label/index.js instead of app/forms/index.js?

app/page.js

import { Button, Label } from 'app/forms';

export default function Component(props) {
  return (
    <div>
      <Label>The button:</Label>
      <Button>Click me</Button>
    </div>
  );
}

app/forms/index.js

export Label from './Label';
export Button from './Button';
...

app/forms/Label/index.js

export default class Label extends React.Component {
  ...
}

Love this plugin! And want love it more! 😊 Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AsaAyerscommented, Dec 24, 2016

This is available in 1.10.0. This seems useful enough to be on by default. For anyone who doesn’t like it, there is a setting.

selection_036

0reactions
nodkzcommented, Dec 26, 2016

Amazing! Works great! Thanks a lot!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Opening a file from an imported function - Stack Overflow
I am importing in moduleX.py a function from moduleZ.py which requires information stored in file1.txt to work. I have no problem importing the ......
Read more >
What Are Import Files? (And How To Import Files in 3 Steps)
Import files are documents, images or other digital items that a person has transferred from one program into another. The process of importing...
Read more >
How to Manipulate Imported Files in SOLIDWORKS - YouTube
As a SOLIDWORKS user you will eventually run into imported data that you did not create yourself. Check out these quick tips on...
Read more >
Python import: Advanced Techniques and Tips
While it's a good idea to separate scripts and libraries, all Python files can be both executed and imported. In a later section,...
Read more >
Import or export text (.txt or .csv) files - Microsoft Support
Import a text file by opening it in Excel. You can open a text file that you created in another program as an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found