Skip to content

Tag: reactjs

How to combine dynamic and static routes in React

I need to combine dynamic and static routing in React. In my website i need to display bunch of products and they are displayed by using a dynamic routing <Route path={“/:products”}/> but every single product has his own ‘Install’ page but by running <Route path ={“/:pro…

Update React-D3-Graph ViewBox

So I have a dataset called actors that holds my nodes and links called scratch that looks like this… And I’m trying to make the graph show up on my react app when ran. The problem I’m having is that the viewbox is extremely small so I can’t use a much larger dataset without nodes going…

Cleaning up axios useEffect function

I keep getting this error for my useEffect. How can I stop getting this warning for my function below? I’m not sure what to add in the useEffect dependency array, I’ve tried using setAppState and the state itself but still getting this warning. Answer Check if the component is still mounted before…