prep index file for react