 find_component_proptypes = require('./find_component_proptypes')
 renderer = require('./renderer')
 window.find_component_proptypes = find_component_proptypes
-tmpDir = os.tmpdir()
 
 module.exports =
 class AtomReactPreviewView extends ScrollView



      # We need to use a temporary file to be able to compile with babel in atom...
      fs.unlinkSync(tmpFile)
      data = fs.readFileSync(path)
      fd = fs.openSync(tmpFile, 'w+')
      buffer = new Buffer("'use babel';\n")


      try
        # TODO WHAT?! Why require places the cache in /private? Who knows...
        delete require.cache[tmpFile]
        subcomponent_to_render = React.createElement(require(tmpFile), @componentState)
      catch err
        atom.notifications.addError('Error parsing React component!', {detail: 'Something went wrong rendering your component "'+@editor.getTitle()+'"\n\n\nCheck for syntax-errors.\n\n\n Full Message:\n\n\n' + err.toString(), dismissable: true})
