two examples of implementing react components

This commit is contained in:
Ian Minoso 2016-10-14 14:23:43 -04:00
parent 67e466ee11
commit 36b1ee2be9
3 changed files with 26 additions and 19 deletions

View file

@ -5,7 +5,16 @@
<!-- New Public Repo Page experiment -->
<div ng-if="newRepoExperiment">
<!-- Test React Component -->
<div><react-component name="TestComponent" props="reactProps"/></div>
<div>
<div>
<div>This is using the generic react-component directive</div>
<react-component name="test-component" props="reactProps"/>
</div>
<div>
<div>This is creating a specific directive corresponding to a react component</div>
<test-component first-prop="reactProps.firstProp" second-prop="reactProps.secondProp"/>
</div>
</div>
</div>
<!-- Old Repo Page -->
<div ng-if="!newRepoExperiment">