これ見ながらやってみる
How to build a Chrome Extension with React JS – Code == Life
popup/index.html
のように階層を掘ると 正しく表示されない
render() { | |
return ( | |
{React.Children.map( | |
this.props.children, | |
(child, index) => { | |
switch (typeof child) { | |
case 'string': | |
return child | |
case 'object': |
これ見ながらやってみる
How to build a Chrome Extension with React JS – Code == Life
popup/index.html
のように階層を掘ると 正しく表示されない
og24715/ABRepeatForYouTube を作るに当たり create-react-app を使わずに React アプリ作るのどうやったっけ、なったので Webpack を使った最小構成をちまちま書く。
$ yarn add react react-dom
$ yarn add -D babel @babel/core @babel/preset-env @babel/preset-react @babel/preset-stage-0 babel-loader webpack webpack-command
const path = require('path');
{ | |
"item_type":"0", | |
"item_id":"1461952399", | |
"description":"", | |
"item_data":{ | |
"video_id":"sm28739739", | |
"title":"【第16回MMD杯Ex】バトル・オブ・紅魔館Ⅱ前編", | |
"thumbnail_url":"http://tn.smilevideo.jp/smile?i=28739739", | |
"first_retrieve":1461953251, | |
"update_time":1521939540, |
~$f10:: | |
While GetKeyState("f10", "P"){ | |
Send {a} | |
Send {d} | |
Sleep 0.01 ;milliseconds | |
} | |
return | |
f12:: |
const newList = [1, 2, 3, 4, 5]
const list = [4, 5, 6, 7, 8]
const endIndex = newList.findIndex(item => item === list[0]) // -> 3
const diff = newList.slice(0, endIndex === -1 ? undefined : endIndex)
console.log([...diff, ...list]) // -> [1, 2, 3, 4, 5, 6, 7, 8]
import React from 'react'; | |
import { Provider, connect } from 'react-redux'; | |
import { reduxifyNavigator } from 'react-navigation-redux-helpers'; | |
import pageNation from './pageNation'; | |
import { configureStore } from './Store'; | |
const store = configureStore(); | |
const mapStateToProps = (state) => ({ | |
state: state.nav, |