2

this image shows multiple apps that should run when I click on them individually.Like: if i click Filter then it should run Filter.js . this image shows multiple apps that should run when i click on them individually.Like: if i click Filter then it should run Filter.js

2
  • You can create a component for each individual App, then create a parent app which loads the other subApps (which are nothing more than components). Also, from inside a .jsx you can import .js libraries and run them from your component's life-cycle methods (e.g. construct or componentDidMount). I'm not sure this addresses your question. Can you be more specific and provide what you have tried so far? Commented Jan 25, 2017 at 16:19
  • I made a parent app and loaded all the components in that...but what i want is , when i click the above displayed tiles it should open respective app in browser...eg. when we open a wallpaper site we get multiple wallpapers displayed on it and on clicking every single of them opens respective image in browser.. Commented Jan 25, 2017 at 16:25

1 Answer 1

1

You should try react-router: https://github.com/ReactTraining/react-router

If I well understood, you're trying to split your app into sections and react-routing is great to do so. You also get path/link matching to your route as a bonus.

It comes with a nice tutorial https://github.com/reactjs/react-router-tutorial which shouldn't take long to go through. For your case, you should need just the first 3 steps.

Good luck.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.