SHARE
TWEET

context

a guest Oct 23rd, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export default props => (
  2.   <Consumer>
  3.     {({ state }) => {
  4.       return <ProfileKiriPasien {...props} getId={state.dataLogin.id_lokasi} />;
  5.     }}
  6.   </Consumer>
  7. );
  8.  
  9. //didalam render
  10.  
  11.  return (
  12.       <div className="mainsearch">
  13.         <div className="form-group has-search">
  14.           <span className="fa fa-search form-control-feedback" />
  15.           <Consumer>
  16.             {({ state }) => {
  17.               return (
  18.                 <input
  19.                   type="text"
  20.                   className="form-control"
  21.                   placeholder="Cari pasien"
  22.                   onChange={e => this.onChange(e, state.dataLogin.id_lokasi)}
  23.                 />
  24.               );
  25.             }}
  26.           </Consumer>
  27.  
  28.           {suggestionsList}
  29.         </div>
  30.       </div>
  31.     );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top