Reputation: 166
is there a way to find out where a react component is used in other components?
for example:
navbar components is used in app.js
import React from 'react';
const Navbar = () => {
return <div>this is Navbar</div>;
};
export default Navbar;
import React from 'react'; import Navbar from './Navbar';
const App = () => {return (<div><Navbar /></div>); };
export default App;
Upvotes: 2
Views: 6494
Reputation: 1395
There's two ways to find:
Cheers and I hope this helps
Upvotes: 3
Reputation: 83
Most IDEs should be able to find references
to the component.
Otherwise, a simple search should find it.
Upvotes: 3