Skip to content

Instantly share code, notes, and snippets.

View phylliswong's full-sized avatar
💭
coding 👩🏻‍💻

Phyllis Wong phylliswong

💭
coding 👩🏻‍💻
  • San Francisco Bay Area
View GitHub Profile
@phylliswong
phylliswong / ProgressBar.js
Created December 13, 2018 00:45
Simple progress bar component with inline style
import React from 'react'
// ES6 JS object
const containerStyle = {
'position': 'relative',
'height': '20px',
'width': '350px',
'border-radius': '350px',
'border': '1px solid #333'
};
@phylliswong
phylliswong / Square.js
Last active December 12, 2018 00:06
Square with CSS stylesheet
import React, { Component } from 'react';
import './Square2.css';
class Square extends Component {
render () {
return (
<div className='sq2-container'>
<h1 className='sq2-title'>Even better title</h1>
<p className='sq-content'>Much improved content</p>
</div>
@phylliswong
phylliswong / Square.js
Last active December 11, 2018 22:39
simple square component for tutorial example
import React from 'react';
const Square = () => {
const sqStyle = {
"border": "1px solid black",
"color": "#a9a9a9"
}
return (
<div className='sq-container' style={sqStyle}>