Alex Puia
Thomas Truong
Adam Jahr
Maya Shavin
/* darknight.css */
.bruce {
color: 'black';
}
/* smash.css */
.bruce {
color: 'green';
}
/* yippeekiyay.css */
.bruce {
color: 'red';
}
<div class="bruce">
I am Bruce
</div>
Bruce
Bruce
Bruce
!important 🤮
const pStyle = {
fontSize: '15px',
textAlign: 'center'
};
const Box = () => (
<p style={pStyle}>Get started with inline style</p>
);
.title {
background-color: red;
}
import style from "./styles.css"
element.innerHTML = `<div class="${styles.title}"> Examples </div>`;
<div class="_styles__title_2805"> Example </div>
const Button = styled.button`
background: ${props => props.primary ? "white", 'black'};
`;
render(<div>
<Button primary>Primary</Buttons>
<Button>Normal</Button>
</div>)
Filip Rakowsky
Rule #2 - Load off-screen components lazily
Rule #3 - Load non-critical libraries lazily
Rule #4 - Choose your libraries carefully and try to find smaller equivalents if possible
Greg Pollack
Thorsten LĂĽnborg
Jason Yu
<h1 id="pageTitle" tabindex="-1">Tasks</h1>
export default {
...,
directives: {
focus: {
inserted: function(el) {
el.focus();
}
}
}
};
<h2 id="newTask" tabindex="-1" v-focus>
Create New Task
</h2>
<event-listener event="keyup" @fired="toggleVideo"/>
export default {
components: {
EventListener
},
methods: {
toggleVideo (e) {
if (e.code === 'Space') {
const video = this.$refs.video
video.paused ? video.play() : video.pause()
}
}
}
}
<event-listener @keydown.space="toggleVideo"/>
export default {
components: {
EventListener
},
methods: {
toggleVideo (e) {
const video = this.$refs.video
video.paused ? video.play() : video.pause()
}
}
}
"A new router to guide your apps"
Eduardo San Martin Morote
"D3 with Vue.js"
Ramona Biscoveanu