Using search template with reactjs

Hi, I can see the search template for Java client. but how about for javascript.
Also, I do not see any documentation on how to configure the template file, where to store.
Can anyone point me to it . thanks