src/project/FileTreeView.js
function render(element, viewModel, projectRoot, actions, forceRender, platform) {
        if (!projectRoot) {
            return;
        }

        Preact.render(fileTreeView({
            treeData: viewModel.treeData,
            selectionViewInfo: viewModel.selectionViewInfo,
            sortDirectoriesFirst: viewModel.sortDirectoriesFirst,
            parentPath: projectRoot.fullPath,
            actions: actions,
            extensions: _extensions,
            platform: platform,
            forceRender: forceRender
        }),
              element);
    }
function render(element, viewModel, projectRoot, actions, forceRender, platform) {
        if (!projectRoot) {
            return;
        }

        Preact.render(fileTreeView({
            treeData: viewModel.treeData,
            selectionViewInfo: viewModel.selectionViewInfo,
            sortDirectoriesFirst: viewModel.sortDirectoriesFirst,
            parentPath: projectRoot.fullPath,
            actions: actions,
            extensions: _extensions,
            platform: platform,
            forceRender: forceRender
        }),
              element);
    }
function render ( element , viewModel , projectRoot , actions , forceRender , platform ) { if ( ! projectRoot ) { return ; } Preact . render ( fileTreeView ( { treeData : viewModel . treeData , selectionViewInfo : viewModel . selectionViewInfo , sortDirectoriesFirst : viewModel . sortDirectoriesFirst , parentPath : projectRoot . fullPath , actions : actions , extensions : _extensions , platform : platform , forceRender : forceRender } ) , element ) ; }
Renders the file tree to the given element.

@param {DOMNode|jQuery} element Element in which to render this file tree
@param {FileTreeViewModel} viewModel the data container
@param {Directory} projectRoot Directory object from which the fullPath of the project root is extracted
@param {ActionCreator} actions object with methods used to communicate events that originate from the user
@param {boolean} forceRender Run render on the entire tree (useful if an extension has new data that it needs rendered)
@param {string} platform mac, win, linux
Renders the file tree to the given element .