Skip to content

Instantly share code, notes, and snippets.

View JoshK2's full-sized avatar
:electron:
Focusing

Josh Kuttler JoshK2

:electron:
Focusing
View GitHub Profile
@JoshK2
JoshK2 / todolistapp-todoapp.js
Last active April 5, 2019 12:01
Todo List App - TodoApp Component
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import List from '@bit/semantic-org.semantic-ui-react.list';
import uniqueId from '@bit/lodash.lodash.unique-id';
import SemanticUiStyle from '@bit/semantic-org.semantic-ui-react.internal.style-links';
import TodoItem from '../TodoItem';
import AddItem from '../AddItem';
const containerStyle = {
@JoshK2
JoshK2 / todolistapp-todoitem.js
Last active April 5, 2019 11:59
Todo List App - TodoItem Component
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Icon from '@bit/semantic-org.semantic-ui-react.icon';
/**
* @description Item inside the list, with remove icon.
* @example
* <TodoItem
* text='Todo Item text example'
* index='1'
@JoshK2
JoshK2 / todolistapp-additem.js
Last active April 5, 2019 11:59
Todo List App - AddItem Component
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { InputTextarea } from '@bit/primefaces.primereact.inputtextarea';
import { Button as GrommetButton } from '@bit/grommet.grommet.button';
import { Button as PrimeButton } from '@bit/primefaces.primereact.button';
import { Add } from '@bit/grommet.grommet-icons.add';
import PrimereactStyle from '@bit/primefaces.primereact.internal.stylelinks';
/**
* @description AddItem is two buttons and textarea to write a new item, one button to add item and another one to remove all items.