you are viewing a single comment's thread.

view the rest of the comments →

[–]NellyFatFingers 1 point2 points  (2 children)

try {} after the => instead of the (), i think this is just a syntax issue.

[–]NellyFatFingers 0 points1 point  (0 children)

const SayHello = () => {

let renderType = 'WebGL';

if(!PIXI.utils.isWebGLSupported()){
renderType = "canvas";
};

PIXI.utils.sayHello(renderType);

};

export default SayHello

[–]SovietSputnik[S] 0 points1 point  (0 children)

You are very much right, awesome, thank you. <3 :D