我想在<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<div ng-controller="AppCtrl">
<isolated-scope-directive go="testFunction()"></isolated-scope-directive>
</div>
应答器中添加一个组件的渲染。
我有一个组件:
<a>
所以我想在import Tableau from "./tableauCOlonnes.jsx";
class Views_Default_Mapping extends React.Component {
render() {
var liste_colonnes = ["Nom", "Age", "Taille"];
const html =
return (
<div className="div_mapping">
<ul>
<li>
<a href="data:text/html,<Tableau liste_colonnes={liste_colonnes}>" target="tabcontent">Fichier 1</a>
</li>
</ul>
</div>
);
}
}
内添加<Tableau />
道具,但它不起作用。我也尝试过html-to-react但我不知道该怎么做,它也不起作用。我该怎么办?
答案 0 :(得分:0)
尝试
<a href={<Tableau liste_colonnes={liste_colonnes}>} target="tabcontent">
Fichier 1
</a>