@GoyeSays
@GoyeSays
https://github.com/Goye
Framework vs components - https://goo.gl/iU3BEo
https://www.webcomponents.org/
https://www.webcomponents.org/
A library for creating user interfaces
but is more about the same?
https://facebook.github.io/react/
+
Traditional MV* separation of concerns
Model | Controller | ModelView | View |
---|---|---|---|
Data | Display logic | Database data | Templates |
A lot of complexity
https://facebook.github.io/react/
Markup with code
Markup and display logic both share the same concern
Pete hunt - Ex-Facebook and Instagram
import React from 'react';
const Button = () => {
return (
<button>
Hey! I'm a button
</button>
);
};
export default Button;
That's ugly but functional
import React from 'react';
const Button = (props) => {
return (
<button name={props.name}>
Hey! I'm a button
</button>
);
};
const Container = () => {
return (
<Button name="save" />
);
};
export default Button;
Everything is a component!
Everything is a component!
Virtual DOM
Re-rendering everything on every update:
Virtual DOM
Imperative | Declarative |
---|---|
Explicit instructions | Describe the outcome |
The system is stupid, you're smart | The system is smart, you don't care |
Ultimate flexibility | Limited flexibility |
Rackspace
How vs What
Imperative
Declarative
Go to kitchen
Open fridge
Remove chicken from fridge
...
Bring food to table
I want a dinner with chicken.
"Easy, fast, robust, and consistent package manager"
https://www.npmjs.com/
https://babeljs.io/
Use next generation JavaScript, today.
https://webpack.js.org/
https://github.com/Goye
https://github.com/Goye