重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
// less
require ('./static/less/index.less')
// 核心
var React = require('react')
var ReactDom = require('react-dom')
var ReactRouter = require('react-router-dom')
var Router = ReactRouter.BrowserRouter
var Route = ReactRouter.Route
var Link = ReactRouter.Link
var CreateClass = require('create-react-class')
var PropTypes = require('prop-types')
var Ajax = require('dollarphp-ajax')
// 创建组件
var Index = CreateClass({
render:function(){
return (
hello world
)
}
})
var Head = CreateClass({
render:function(){
return (
{this.props.children}
)
}
})
// 渲染
ReactDom.render(
,
document.getElementById('app')
)