From fc2b5db3381e8a6de93a8eb96bc26c1c37042340 Mon Sep 17 00:00:00 2001 From: Mehran Dehghanian Date: Sun, 7 Mar 2021 11:47:25 +0330 Subject: [PATCH] Add 'Pass props to parent React' --- Pass-props-to-parent-React.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Pass-props-to-parent-React.md diff --git a/Pass-props-to-parent-React.md b/Pass-props-to-parent-React.md new file mode 100644 index 0000000..a53d372 --- /dev/null +++ b/Pass-props-to-parent-React.md @@ -0,0 +1,9 @@ +### Pass props to parent component in React.js + +``` +var Child = React.createClass({ + render: function () { + return ; + }, +}); +``` \ No newline at end of file