Created
January 30, 2016 00:44
-
-
Save viceversus/4a820ca55955897d8578 to your computer and use it in GitHub Desktop.
Entry No HoC
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
import React from 'react'; | |
import UserList from 'user_list'; | |
import PokemonList from 'pokemon_list'; | |
$(function() { | |
function render() { | |
var userList = $('#user-list'), | |
pokemonList = $('#pokemon-list'); | |
if (userList.length > 0) { | |
ReactDOM.render(<UserList />, userList[0]); | |
} | |
if (pokemonList.length > 0) { | |
ReactDOM.render(<PokemonList />, pokemonList[0]); | |
} | |
} | |
render(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment