Joel Watson

Joel.Watson92@gmail.com | LinkedIn: /in/joel3rbear | Twitter: @Joel3rBear


Project maintained by JoelMWatson Hosted on GitHub Pages — Theme by mattgraham

Home » Reading Notes » Component Based UI


Class 21 Reading: Component Based UI

What is the benefit of breaking up HTML webpage content into components?

One of the advatage to breaking huge HTML webpages into small components is that you are able to reuse a lot of those small components on other pages.

What is JSX? Why is it useful?

JSX (JavaScript XML) is Reacts templating language. It is really useful because you can create entire web pages without actually writing any HTML at all.

What can cause a render (or re-render) of a component?

Components will render or re-render whenever a change is made to their state.

When a render happens, how is the DOM affected

When a render happens, the component will appear in the DOM

What is one thing a framework does that a library doesn’t do?

Both a framework and a library offer you a set of tools to complete tasks. The difference is that with a framework, there are rigid rules that decided where your code goes and when it will be called. With a library on the other hand the tool set is much more flexible and you can use it wherever you like in your applicaiton.