Skip to content

Instantly share code, notes, and snippets.

View yoneda's full-sized avatar
🏠
working from home

Kohei Yoneda yoneda

🏠
working from home
View GitHub Profile
@yoneda
yoneda / t.txt
Last active March 16, 2020 06:56
api access test
hello, worldd
cp -R source-dir new-dir && cd new-dir && rm -rf .git

そもそも設計は必要?

  • UI はコンポーネントの集まりでできている
  • コンポーネントがバラバラだったら嫌!
  • コンポーネントがバラバラだったら、今後見たくなくなる
  • コンポーネントがバラバラだったら、修正しにくいし追加もしにくい
  • コンポーネントに一定の秩序があることが大事

自由度が高いものには制限をかけることで運用しやすくなる

  • CSSでいうとBEM、JSでいうとESLintが近い
import * as React from "react";
export interface Props {
text: string;
}
const Test: React.FC<Props> = ({ text }:Props) => {
return(
<div>{text}</div>
)
@yoneda
yoneda / document.md
Last active March 10, 2019 04:18
todoapp backend api

TODO-API ドキュメント

タスク一覧を取得

path

GET /tasks

parameters

class Test extends React.Component{
constructor(){
super();
this.state = {toggle:false}
this.updateToggle = this.updateToggle.bind(this);
}
updateToggle(flag){
this.setState({toggle:flag});
}
@yoneda
yoneda / test.js
Created December 23, 2018 20:06
react stateless functional component template
import React from "react";
const Test = ({}) => {
return(
<div>
<p>texttext</p>
</div>
)
}
@yoneda
yoneda / prtemplate.md
Created December 10, 2018 09:52
github pull request template

概要

関連issue

技術的変更点

UIに対する変更

その他

### 自己紹介
2018年11月22日 13:00-
フロントエンドLT会
---
#### outline
* どのように育ったか
* 趣味
## 開発チーム4でやったこと
---
## 目次
* 自己紹介
* 解決した課題
* GOOD/MOTTO