react working in index