Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

different ways to write react file paths

Writing a path to a react file/project file
import something from '/thatThing'; this is the current tree
import something from '../thatThing';
import something from '../../thatThing';

dipending on your level of files you should be able to find a way to map through your project files with this tips.
 
PREVIOUS NEXT
Tagged: #ways #write #react #file #paths
ADD COMMENT
Topic
Name
7+8 =