Hi
Please suggest how I use SFS server with React JS gaming project.
How to install/use SFS server with ReactJS
Re: How to install/use SFS server with ReactJS
We strongly suggest NOT to use ReactJS for a gaming project.
That framework was born to create RIAs (Rich Internet Applications) and it has very little to do with games. You will obtain a much heavier code to be executed in browsers.
That said, this is up to you of course. About how to use our API, it is just a matter of importing our .js file in the main HTML file of your game, then you should be able to access its classes from anywhere in your code.
I'd suggest to start from our examples (even if they don't use ReactJS): http://docs2x.smartfoxserver.com/Exampl ... troduction
That framework was born to create RIAs (Rich Internet Applications) and it has very little to do with games. You will obtain a much heavier code to be executed in browsers.
That said, this is up to you of course. About how to use our API, it is just a matter of importing our .js file in the main HTML file of your game, then you should be able to access its classes from anywhere in your code.
I'd suggest to start from our examples (even if they don't use ReactJS): http://docs2x.smartfoxserver.com/Exampl ... troduction
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Re: How to install/use SFS server with ReactJS
Thanks for instructions.
Could I use it with Angular/Vue ?
Could I use it with Angular/Vue ?
Re: How to install/use SFS server with ReactJS
I think you can use our API with any framework. It is just a matter of understanding what framework is best for game development, but this goes beyond SmartFoxServer.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Who is online
Users browsing this forum: No registered users and 92 guests