I have an project I'm working that is a HTML page builder of sorts. The user can choose from a list of pre-designed HTML page sections (Header, sliders, content blocks, footers etc) from a menu and drop them onto a canvas to build a webpage. The end result is a downloadable zip file containing a static website.
My application layout looks like this so far:
I have part 1,2 & 3 covered. Part 4, a slide out drawer, contains the HTML sections and when clicked I'd like to append the corresponding component to the main area of the page, this process would be repeated until the webpage has been built. Each component can then be edited and eventually saved as a page.
What I am looking for advice on is how, using React/Redux, do I append full components to the main area onclick?
I assume I dispatch action/reducer referencing a component, but how do I actually add and keep track of the components appended to the main area? Using jQuery this would be a simple jQuery .load() but in React/Redux I have no idea, maybe a trick I can use using React Router?
Can anyone help point me in the right direction? Further reading etc.
Many thanks in advance.
