Created
March 29, 2015 15:10
-
-
Save suisho/65c2aa4ce558363fc9db to your computer and use it in GitHub Desktop.
わーいReactでautoKanaみたいなことやるやつできたよー ref: http://qiita.com/suisho/items/81ad81425eb07af1dfc1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Example = React.createClass({ | |
| onUpdateKana(data){ | |
| this.setState({ | |
| kana : data.kana | |
| }) | |
| }, | |
| render(){ | |
| return ( | |
| <div> | |
| <div> | |
| <AutoKana onUpdate={this.onUpdateKana} /> | |
| <input value={this.state.kana} /> | |
| </div> | |
| </div> | |
| ) | |
| } | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ["", "あ", "あk", "あか", "赤", "赤あ", "赤あお", "赤青", "赤k青", "赤き青", "赤きい青", "赤きいr青", "赤きいろ青", "赤黄色青"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ [ '赤', 'あか', 'あk', 'あ', '' ], | |
| [ '黄色', 'きいろ', 'きいr', 'きい', 'き', 'k' ], | |
| [ '青', 'あお', 'あ' ] ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| あかきいろあお |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment