React Weixin Title
Provides a declarative way to specify document.title in a single-page app.
This component can be used on weixin for iOS as well.
Installation
npm install --save react-weixin-title
Example
Assuming you use something like react-router:
;;;; ;;; ; const title = 'React Weixin Title'; //your title hereconst src = '/favicon.ico'; //a valid url, i.e. '/favicon.ico' ;
Or use WeixinTitle component
;; const title = 'your title here'; //your title hereconst src = '/favicon.ico'; //a valid url, i.e. favicon.ico Component { return <WeixinTitle title=title src=src> //your code here </WeixinTitle> }
Live Demo
References
License
Copyright © 2016 yahiousun. This source code is licensed under the MIT license found in the LICENSE file.