From f50821ab16e98119f114c9fe13cfa1650d6f15bf Mon Sep 17 00:00:00 2001 From: Shen liang Date: Thu, 4 Jan 2018 17:13:17 +0800 Subject: [PATCH 1/2] make the className changeable --- src/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.jsx b/src/index.jsx index dc4617d..ae9518f 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -218,9 +218,9 @@ class Selection extends React.Component { } render() { - const {children, target, ...props} = this.props + const {children, target, className="react-selection",...props} = this.props return ( -
+
{children}
From b73563f8aa0d96f475f64d6779e7dea7843439c7 Mon Sep 17 00:00:00 2001 From: Shen liang Date: Tue, 20 Mar 2018 22:06:32 +0800 Subject: [PATCH 2/2] add project file --- react-selection.iml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 react-selection.iml diff --git a/react-selection.iml b/react-selection.iml new file mode 100644 index 0000000..8021953 --- /dev/null +++ b/react-selection.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file