Passing a variable from a jade file to a React Component
问题 I am having trouble passing a variable from a .jade file to a react component. Here is a section of my jade file: block content #example var user = '#{user}'; span #{user.id} span #{user.displayName} And here is app.jsx, the react component that I would like to have access to the variable user. var React = require('react'); var HelloWorld = require('./HelloWorld.jsx'); var $ = jQuery = require('../../libraries/jquery/dist/jquery'); var bootstrap = require('../../libraries/bootstrap-sass