I have just started learning vuejs framework, but as I knew it is for SPA.
Then why I learn a framework to design only one page? or am I wrong?
should I go with vue? or there is alternatives?
does react js enable me to create multiple page websites?
what should I do?
and many thanks in advance.
you can do multiple page websites with just html, you just need multiple html files linked to each other in some way
what a framework like react or vue let you do is single page applications, as in, you have a single html page and everything is rendered dinamically based on user data and on what the user does
Thanks so much for the reply. but if I need specific feature that vue or react offer on another page than the main html. why they prevent us to do that?
it is strange. even jquery can be used for multiple pages on the same website
jquery is um… old and no longer needed in my opinion.
React and Vue can manipulate the DOM on a single website.
What is your goal? Do you want a website,com/home | website,com/store ? or just a single website,com?
I need to develop website with many pages like about page, registeration page, etc. normal website that contains as many pages as I want
may be a blog with artiles, posts, comments.
may be online store.
Then you will need to look into back end. Like node.js or PHP.
Vue/React/JS are all front end. Your back end will tell which page to load.
*and the back end will hide all of the private info (passwords etc)
thanks so much for the reply. I already have started learning PHP and began to understand backend but I mean the frontend.
lets say I have the index.html where I use Vue js also I have aboutpage.html
then the problem that I used vue on the index page and unfortunately I can not use vue on the aboutpage because Vue is only for SPA.
Then what is the solution on that case?
Each page is it’s own “Single Page Application”…
I’m honestly not sure with Vue… and someone else can answer this better;
React uses a “router” system (that i’ve yet to play with) that allows you “route” between pages…
I’d assume Vue has a similar system. But hopefully someone with more experience can point you in the right direction
thanks so much. I really do appreciate.
Hi @pjonp @optimistic
@pjonp You are right, you can make every single page a single page application, that’s mean @optimistic if you want just the index.html and the about.html be interactive with Vue and left the others pages without, you can do it. You can use “Vuex” to manage the data between those page that are written with Vue, but I think it won’t be easy to share data with the pages that are not written with Vue.
Other option is, make a SPA using Vue to make the pages you want interactive, Vuex to manage the data and Vue Router to manage the URL’s that you serve, with Vue Router you can route to static pages (those that you want just with Html).
I recommend you to read about these Libraries and read about Vue Ecosystem.
thanks so much. I really do appreciate. it was helpful. I know little about Vue router. I should read about vuex too. thank you
Hey! I think you have a little misunderstanding of what spa meando. Through vue router or react router or angular you just serve one main.html file. However, you can generate multiple routes/ pages that will be loaded through JS, which is what you want to do. Good luck with your project!