Skip to content

Instantly share code, notes, and snippets.

@viceversus
Created January 30, 2016 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viceversus/4a820ca55955897d8578 to your computer and use it in GitHub Desktop.
Save viceversus/4a820ca55955897d8578 to your computer and use it in GitHub Desktop.
Entry No HoC
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