Skip to content

Instantly share code, notes, and snippets.

View indreklasn's full-sized avatar
👋

Trevor I. Lasn indreklasn

👋
View GitHub Profile
// What's the difference?
const sayHello = name => console.log(name)
function sayHello(name) {
console.log(`${name}`)
}
// make this work
duplicate([1,2,3,4,5]); // [1,2,3,4,5,1,2,3,4,5]
import React, { useState } from "react";
import { motion } from "framer-motion";
const styles = {
borderRadius: 30,
width: 100,
height: 100,
margin: "auto",
display: "flex",
justifyContent: "center",
import React from "react";
import { motion } from "framer-motion";
const styles = {
background: "#7fffd4",
borderRadius: 30,
width: 150,
padding: "10px 20px",
margin: "auto",
color: "#333",
import React from "react";
import { motion } from "framer-motion";
const styles = {
background: "#035ee8",
borderRadius: 30,
width: 100,
height: 100,
margin: "auto"
};
import React from "react";
import { motion } from "framer-motion";
const styles = {
background: "red",
borderRadius: 30,
width: 50,
height: 50,
margin: "auto"
};
import React from "react";
import { motion } from "framer-motion";
const styles = {
background: "blue",
borderRadius: 30,
width: 150,
height: 150,
margin: "auto"
};
import { motion } from "framer-motion"
render() {
return (
<View style={styles.panel}>
<VrButton
onClick={this.incrementCount}
style={styles.greetingBox}
>
<Text>+</Text>
</VrButton>
<VrButton
export default class Hello360 extends React.Component {
state = {
count: 0,
};
// This method increments our count, triggering a re-render
incrementCount = () => {
this.setState({count: this.state.count + 1});
};