Skip to content

Instantly share code, notes, and snippets.

View SaraVieira's full-sized avatar
🤷‍♀️
open sourcy and shit

Sara Vieira SaraVieira

🤷‍♀️
open sourcy and shit
View GitHub Profile
import { StaticRouter } from 'react-router'
...
const context = {}
const Root = () => (
<StaticRouter location={req.url} context={context}>
<App />
</StaticRouter>
)
import React from 'react'
import { hydrate } from 'react-dom'
import { BrowserRouter as Router } from 'react-router-dom
import 'isomorphic-fetch'
import App from './App'
hydrate(
<Router>
<App />
import React from 'react'
import { Route, Switch } from 'react-router-dom'
import Home from './Pages/Home'
import Speakers from './Pages/Speakers'
import Speaker from './Pages/Speaker'
import Tags from './Pages/Tags'
import Tag from './Pages/Tag'
import Favorites from './Pages/Favorites'
/Users/saravieira/Projects/awesome-talks/build/server.js:4907
), document.getElementById('root'));
^
ReferenceError: document is not defined
at Module../src/client.js (/Users/saravieira/Projects/awesome-talks/b
uild/server.js:4907:4)
at __webpack_require__ (/Users/saravieira/Projects/awesome-talks/buil
d/server.js:672:30)
at fn (/Users/saravieira/Projects/awesome-talks/build/server.js:55:20)
/Users/saravieira/Projects/awesome-talks/build/server.js:4876
), document.getElementById('root'));
^
ReferenceError: document is not defined
at Object../src/client.js (/Users/saravieira/Projects/awesome-talks/build/server.js:4876:4)
at __webpack_require__ (/Users/saravieira/Projects/awesome-talks/build/server.js:672:30)
at fn (/Users/saravieira/Projects/awesome-talks/build/server.js:55:20)
at Object../src/server.js (/Users/saravieira/Projects/awesome-talks/build/server.js:4951:66)
at __webpack_require__ (/Users/saravieira/Projects/awesome-talks/build/server.js:672:30)

So I went to Script Conf in Linz when I was in Vienna as an atendee and ended up walking there alone because I only knew Patrick and knowning Patrick in a conference is like going to a birthday party and only knowing the birthday person, it's worthless because they know everyone. I was smoking outside minding my bussiness and Simona who is here today watching this train wreck came to me. I want to clarify that I never talked to her before this day, like I knew who she was from the internets but I never met her. So she came to me like really fucking excited and was like:

OMG ! It's so nice to meet you! I have been following on the internet for a while and I was really excited when you tweeted about coming here. When are you leaving?

I'm leaving on the last train today, I'm staying in vienna in an airbnb.

To what she replies:

Name: Your Brain doesn't have a fix flag

Depression and anxiety are enormous problems in our work and world in general. But they are topics that are not discussed enough and topics that we feel are kind of shameful. In this talk Sara will expose her personal mental health issues that she had for a long time so you don’t ever feel embarrassed again. She will go through what she learned in this horrible horrible journey of putting a fix flag on her brain in the hope that it helps as many people as possible.

Name: The Dream of Styleguide Driven Development

React is awesome! We probably all here agree on that. You have heard of all types of driven development but react emerged a new type, styleguide driven development became a reality with components. This type of development focuses on Developer/Designer collaboration and on assertive components. With the use of React, Styled Components and Snapshot testing we were able to almost remove style regressions.

optimisticResponse: {
__typename: "Mutation",
createNames: {
id: -1,
__typename: "Name",
name
}
}
<script>
import { GET_NAMES, ADD_NAME } from "../queries";
export default {
name: "Form",
data() {
return {
person: "",
<script>
import { GET_NAMES, ADD_NAME } from "../queries";
export default {
name: "Form",
data() {
return {
person: ""
};