F8app: Question: about require

Created on 20 Jun 2016  路  1Comment  路  Source: fbsamples/f8app

In js/F8Navigator.js, why will "var F8TabsView = require('F8TabsView');" be ok?
Shouldn't it be "var F8TabsView = require('./tabs/F8TabsView');" ?

Most helpful comment

Each file has a comment at the top containing @providesModule F8TabsView. This allows you to require the file from anywhere in the project using require('F8TabsView') without worrying about relative paths. It's something that is provided by react through the commoner module.

>All comments

Each file has a comment at the top containing @providesModule F8TabsView. This allows you to require the file from anywhere in the project using require('F8TabsView') without worrying about relative paths. It's something that is provided by react through the commoner module.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fenglu09 picture fenglu09  路  5Comments

santosrai picture santosrai  路  3Comments

etamity picture etamity  路  4Comments

mikelambert picture mikelambert  路  7Comments

letientai299 picture letientai299  路  3Comments