Skip to content

Commit 8ddd7ab

Browse files
author
Evert Arias
committed
Use multiple repos which is now supported by the library
1 parent 1f3f844 commit 8ddd7ab

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

example/src/App.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@ import React from "react";
22

33
import Contributors from "react-contributors";
44

5+
// Owner username.
6+
const owner = "evert-arias";
7+
8+
// Repo(s) name. Single string or array with multiple repo names.
9+
const repos = ["EasyButton", "easybtn.earias.me"];
10+
511
const App = () => {
6-
return <Contributors owner="evert-arias" repo="EasyButton" />;
12+
return <Contributors owner={owner} repo={repos} />;
713
};
814

915
export default App;

0 commit comments

Comments
 (0)