-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2345 from oliviertassinari/example-fix-api
[Example] Use the lastest API
- Loading branch information
Showing
5 changed files
with
97 additions
and
94 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
(function () { | ||
let React = require('react'); | ||
let ReactDOM = require('react-dom'); | ||
let injectTapEventPlugin = require('react-tap-event-plugin'); | ||
let Main = require('./components/main.jsx'); // Our custom react component | ||
|
||
//Needed for React Developer Tools | ||
window.React = React; | ||
|
||
//Needed for onTouchTap | ||
//Can go away when react 1.0 release | ||
//Check this repo: | ||
//https://github.com/zilverline/react-tap-event-plugin | ||
injectTapEventPlugin(); | ||
|
||
// Render the main app react component into the app div. | ||
// For more details see: https://facebook.github.io/react/docs/top-level-api.html#react.render | ||
ReactDOM.render(<Main />, document.getElementById('app')); | ||
|
||
})(); | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import injectTapEventPlugin from 'react-tap-event-plugin'; | ||
import Main from './components/main'; // Our custom react component | ||
|
||
//Needed for onTouchTap | ||
//Can go away when react 1.0 release | ||
//Check this repo: | ||
//https://github.com/zilverline/react-tap-event-plugin | ||
injectTapEventPlugin(); | ||
|
||
// Render the main app react component into the app div. | ||
// For more details see: https://facebook.github.io/react/docs/top-level-api.html#react.render | ||
ReactDOM.render(<Main />, document.getElementById('app')); |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
(function() { | ||
let React = require('react'); | ||
let ReactDOM = require('react-dom'); | ||
let injectTapEventPlugin = require('react-tap-event-plugin'); | ||
let Main = require('./components/main'); // Our custom react component | ||
|
||
//Needed for React Developer Tools | ||
window.React = React; | ||
|
||
//Needed for onTouchTap | ||
//Can go away when react 1.0 release | ||
//Check this repo: | ||
//https://github.com/zilverline/react-tap-event-plugin | ||
injectTapEventPlugin(); | ||
|
||
// Render the main app react component into the app div. | ||
// For more details see: https://facebook.github.io/react/docs/top-level-api.html#react.render | ||
ReactDOM.render(<Main />, document.getElementById('app')); | ||
|
||
})(); | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import injectTapEventPlugin from 'react-tap-event-plugin'; | ||
import Main from './components/main'; // Our custom react component | ||
|
||
//Needed for onTouchTap | ||
//Can go away when react 1.0 release | ||
//Check this repo: | ||
//https://github.com/zilverline/react-tap-event-plugin | ||
injectTapEventPlugin(); | ||
|
||
// Render the main app react component into the app div. | ||
// For more details see: https://facebook.github.io/react/docs/top-level-api.html#react.render | ||
ReactDOM.render(<Main />, document.getElementById('app')); |
This file contains 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