Linking to other components
See original GitHub issueI could be completely missing this in the documentation, but I can’t see where there is a way to have handlebars / MD in a components notes file render a link to another component.
i.e.
This is a description of how this component works. But it's also
similar to {{ components.buttons.cancel-button }}
Am I just being blind/dumb ?
Issue Analytics
- State:
- Created 7 years ago
- Comments:18 (8 by maintainers)
Top Results From Across the Web
Linking to other components with react-router - Stack Overflow
Here is how you can do the desired, simple setup that you want: import React from "react"; import ReactDOM from "react-dom"; ...
Read more >How to link a custom React component <MyButton> to another ...
Example: The simplest way to redirect a user to another page without the use of any external libraries is to embed the react...
Read more >React Router Tutorial – How to Render, Redirect, Switch, Link ...
The Redirect component from React Router can be used to redirect the user to another path. const withAuth = (Component) => { const ......
Read more >Creating a Link Between Pages in React Router
The new List page uses a React Router Link component to navigate to our Detail page. Buy the book for $10. Get the...
Read more >Link - React Router: Declarative Routing for React.js
A string representation of the Link location, created by concatenating the location's pathname, ... Get the underlying ref of the component using React....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Reopening since this is something we should figure out with integrating core/theme/adapter somehow.
I see the need for three usecases:
If that is of any help, I have this Nunjucks helper:
Which then allows me to link to other components with:
{{ '@handle' | link }}
.Notice that I run my Fractal commands prefixed with
NODE_ENV=[development|production]
for this to work properly.