0 0
Read Time11 Second
  1. Create config.js
    export function Asset_img(){
    return “https://assets.domain.com/images/”;
    }
  2. Import in component
    import { Asset_img } from ‘../../../config/config.js’;
    path based on component we use.
  3. Panggil di component tersebut
  4. DONE

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %
Previous post Snippet Cheatsheet ReactJS di Visual Studio Code (On Progress)
Next post Hilangin scrollbar tapi masih bisa nyecroll – CSS

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply

Your email address will not be published. Required fields are marked *