Meteor & React tips

[Mobile version(QRCode)] Total views:65,915 / Applauds for blog:1
Welcome to my page. I am an adminisrator of this site.
If you are this db's user, please contact with me by private mail. If not, please contact with me by email or twitter or facebook
Access record[Graph / PV Info.(Past 1 day / Past 1 week) / Access from outside (Yesterday / Past 1 week) / Vistors's list]
ProfilePmail(Mail)
Inbox   /Send   /Sent
Reviews(List   /Limit)
Poll   /Agree:Got   /Sent
Fan
Works/Music
Blog
[Write]
Links
My Play List
<=Newer article Cloud9
=>Older article MongoDb's naming convention

1.
2017/11/27 (Updated 2017/12/14) "Meteor > Meteor & React tips"
[Show only this article / Modify / Delete / Send trackback / Add to the shared category]

1. What is this document
  1. Data retrieval should be done in container
  2. state value should be in client's side
  3. state should be passed to the children as {...this.state} and should be gotten and props
  4. Parent's state can be changed by passing the function to change the state from parent to children
  5. Avoid using global CSS as much as possible when you want to really make composed component
  6. general naming rule should be camelCase
  7. Clean unused disk by meteor
2. Meteor tips
  1. this.userId or Meteor.userId?

1. What is this document

List up what we should pay attention as principle when you create Meteor & React App
  1. Data retrieval should be done in container


  2. state value should be in client's side


  3. state should be passed to the children as {...this.state} and should be gotten and props


  4. Parent's state can be changed by passing the function to change the state from parent to children


  5. Avoid using global CSS as much as possible when you want to really make composed component


  6. general naming rule should be camelCase

Exception is Class name (CamelCase) and CSS (red-car__wheel--broken)
  7. Clean unused disk by meteor

Disk space will be used by meteor with waste, so you should clean up sometimes.
meteor npm install -g meteor-cleaner;
meteor clean-package-cache;

2. Meteor tips


  1. this.userId or Meteor.userId?

this.userId is for server side's publication
Meteor.userId is for client side.

Add comment to this article


[Read other articles]
<=Newer article Cloud9
=>Older article MongoDb's naming convention


Articles categorized as "Meteor by this user"
All articles of this user
Subscribe to RSS
RSS
Term
Category
All
1.Japan
2.Atlassian's products
3.Self
4.Development of this site
5.Japanese comics
6.Japanese anime
7.Weekly hot news of Japanese culture
8.OP/ED/PV
9.Japanese game
10.Ranking
11.Japanese Comics (Manga)
12.Search Engine
13.Japanese drama
14.Japanese otaku culture
15.Programming
16.Ineternet world
17.Movie
18.C/C++
19.BerkeleyDB
20.Apache programming
21.Spam
22.Meteor
23.Marketing
24.Python
25.Scrum
26.JIRA
27.Git
28.CI
29.Jenkins
30.AWS
31.Operation
32.Singapore
33.Cloud
34.Mysql Cluster
35.DevOps
36.Bitbucket
37.Xamarin
38.Good and new
39.Monitoring
40.JavaScript(node.js)
41.React
42.Phillipines
43.Hiring
44.Python
45.SEO
46.Malaysia
47.Mongodb
48.Perl
49.Docker
50.Life hack
51.Dance
52.QA
53.Mysql
54.Digital Life Hack
55.Project management
56.Django
57.Gatsby
58.Administrator
Sayings from S-Cry-Ed

Rule in this world is speed. Even stupid person can write cool novel if he can spend 20 years for it.

If someone helped me, I will help him in return, which is my rule.

To become stronger, consider what is cowardliest thinking. And rebel against the thinking, which will make you stronger.



I am Japanese but working for some English sites.

Doctor Job Career
Nurse Job Career
Top Page top MetaSeachJP Works