小编hab*_*bun的帖子

ReactJS - <a>标签上的未知道具`activeClassName`.从元素中删除此prop

我正在使用react 15.4.2和react-router4.0.0,这个项目是用Create React App引导的.

这是我的代码.

import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import {BrowserRouter as Router,Route,Link} from 'react-router-dom'


 const AboutPage = () => {
 return(
    <section>
        <h2>This is About page</h2>
        <Link activeClassName="active" to="/about/nestedone">Nestedone</Link>
        {' '}
        <Link activeClassName="active" to="/about/nestedtwo">Nested two</Link>
    </section>
)
}

const HomePage = () => {
return(
    <section>
        <h2>This is Home page</h2>
        <Link to="/about">About</Link>
    </section>
)
}

const NestedOne = () => {
return (
    <section>
        <h2>Nested page 1</h2>
    </section>
)
}


const …
Run Code Online (Sandbox Code Playgroud)

reactjs react-router

9
推荐指数
4
解决办法
5446
查看次数

使用未定义的常量 STDIN - 假定为“STDIN”

<?php
echo "Hello there. So I hear you're learning to be a PHP programmer!\n";
echo "Why don't you type in your name for me:\n";
$name = trim(fgets(STDIN));
echo "\nThanks, " . $name . ", it's really nice to meet you.\n\n";
?>
Run Code Online (Sandbox Code Playgroud)

我正在使用 php 版本 5.5.19 xampp

php

0
推荐指数
1
解决办法
9330
查看次数

标签 统计

php ×1

react-router ×1

reactjs ×1