reactJS
文章平均质量分 64
samete
这个作者很懒,什么都没留下…
展开
-
antd循环输出
import React, {Component} from "react";import { Menu, Icon } from 'antd';import navCfg from "../../navCfg";const SubMenu = Menu.SubMenu;class RightMenu extends Component { constructor(props原创 2016-05-24 16:07:50 · 6167 阅读 · 0 评论 -
reactJS的return里面不要有分号
return ( 飞马信息平台ifim { ss.map(function(s, i) { return (原创 2016-05-18 15:03:24 · 3437 阅读 · 0 评论 -
最简单的antd的index.jsx的路由配置
import '../common/lib';import Home from '../component/home/Home';import ReactDOM from 'react-dom';import React from 'react';import { Router, Route, Redirect, IndexRoute, hashHistory } from 'react-原创 2016-06-01 17:51:46 · 3155 阅读 · 0 评论 -
一个最简单的react-router设置
index,jsx(入口文件)import '../common/lib';import App from '../component/App';import ReactDOM from 'react-dom';import React from 'react';import { Link } from 'react-router';import { Router, Route,原创 2016-06-07 17:38:11 · 4113 阅读 · 0 评论 -
使用antd创建一个3级联动菜单栏
Index.jsximport '../common/lib';import App from '../component/App';import ReactDOM from 'react-dom';import React from 'react';import { Link } from 'react-router';import { Router, Route, Redire原创 2016-06-08 13:07:18 · 14452 阅读 · 1 评论