How to install/use SFS server with ReactJS

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

reacter
Posts: 2
Joined: 13 Feb 2019, 05:26

How to install/use SFS server with ReactJS

Postby reacter » 13 Feb 2019, 05:33

Hi
Please suggest how I use SFS server with React JS gaming project.
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: How to install/use SFS server with ReactJS

Postby Bax » 13 Feb 2019, 08:23

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
Paolo Bax
The SmartFoxServer Team
reacter
Posts: 2
Joined: 13 Feb 2019, 05:26

Re: How to install/use SFS server with ReactJS

Postby reacter » 13 Feb 2019, 10:11

Thanks for instructions.
Could I use it with Angular/Vue ?
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: How to install/use SFS server with ReactJS

Postby Bax » 13 Feb 2019, 10:22

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

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 45 guests