問321
イベントデリゲーションに関して。 こちらのDOMの
<ul id="todo-app">
<li class="item">Walk the dog</li>
<li class="item">Pay bills</li>
<li class="item">Make dinner</li>
@Entity | |
@SecondaryTables({ | |
@SecondaryTable(name = "zipcode_tbl"),//not much!! | |
@SecondaryTable(name = "address_tbl"), | |
}) | |
@Table(name="user_data_2") | |
public class UserEntity02 implements Serializable { | |
@Id @NotNull | |
private String id; | |
private String name; |
<properties> | |
<!--add this code, if you use eclipselink --> | |
<property name="eclipselink.ddl-generation" value="create-tables"/> |
sudo /usr/local/lib/rustlib/uninstall.sh |
問321
イベントデリゲーションに関して。 こちらのDOMの
<ul id="todo-app">
<li class="item">Walk the dog</li>
<li class="item">Pay bills</li>
<li class="item">Make dinner</li>
////////no key////////keyを持たないで返しているコード/// | |
const users = this.state.users.map(function (user){ | |
return <User id={user.id} name={user.name} />; | |
}); | |
////////add key//////keyを設定して返しているコード/// | |
const users = this.state.users.map(function (user){ | |
return <User id={user.id} key={user.id} name={user.name} />; | |
}); |
import React, { Component } from 'hogehogefolder/react';//error react. Required module not found | |
const MailToBtn = ({mailAddress, addClass, children }: Props) => ( | |
<a className='block w100 ' href={mailAddress}> | |
<button className={`${addClass} appearanceNone outlineNone btnMain btnShadow1 size1 type1 btn100 pad0`} type='button'> | |
{children} | |
</button> | |
</a> | |
) | |
export default MailToBtn |
[ignore] | |
.*/node_modules/.* | |
[include] | |
./resources/es6 | |
[libs]//add flowtyed folder | |
./resources/decls | |
[options] |
declare module 'hogehogefolder/react' { | |
declare module.exports: any; | |
} |
resources/es6/hogehoge/components/stateless/Button/MailToBtn.js:3 | |
3: import React, { Component } from 'tel_fortune_lib/react'; | |
^^^^^^^^^^^^^^^^^^^^^^^ hogehogefolder/react. Required module not found |
////error | |
this._increment = this._increment.bind(this); | |
^^^^^^^^^^ property `_increment`. Covariant property `_increment` incompatible with contravariant use in | |
27: this._increment = this._increment.bind(this); | |
^^^^^^^^^^^^^^^ assignment of property `_increment` | |
/////// code //////// | |
constructor(props: Props){ | |
super(props); | |
this.state = { |