You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,6 +181,10 @@ import {imported, lazy, useImported} from "react-imported-component/macro";
181
181
// notice - there is no default import here
182
182
```
183
183
184
+
### Indirect usage
185
+
Just importing `react-imported-component/macro` would enable babel transformation for the current file.
186
+
If you have `imported` definition in one file, and use it from another - just `import "react-imported-component/macro"` in that another file. See [#142](https://github.com/theKashey/react-imported-component/issues/142)
0 commit comments