You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.
Meteor restricts any js located below /client/ to client-side, and js located below /server/ to server-side. Everything else is available on both client and server side (some like to put stuff under /both/ or /model/ etc for clarity).
Currently there is only one react-meteor example and it has all the js code within a single JSX file which includes some if (Meteor.isServer) {} and if (Meteor.isClient) {} blocks. Can developers split these blocks into separate js files (looks like pure js, so no JSX required) located under /server/ and /client/ respectively? Does the rest of the leaderboard example JSX code have to be in the "both" category or can some of it be limited to client/server?
The text was updated successfully, but these errors were encountered:
Meteor restricts any js located below /client/ to client-side, and js located below /server/ to server-side. Everything else is available on both client and server side (some like to put stuff under /both/ or /model/ etc for clarity).
Currently there is only one react-meteor example and it has all the js code within a single JSX file which includes some
if (Meteor.isServer) {}
andif (Meteor.isClient) {}
blocks. Can developers split these blocks into separate js files (looks like pure js, so no JSX required) located under /server/ and /client/ respectively? Does the rest of the leaderboard example JSX code have to be in the "both" category or can some of it be limited to client/server?The text was updated successfully, but these errors were encountered: