+
+
+
+
+ {comments?.map(comment => {
+ // CHANGE jsonplaceholder DEFAULT IDs
+ // In order to allow multiple creations of comments
+ comment.id = comment.id + Date.now();
+
+ return
+ })}
+
+ );
+};
+
+export default Comments;
\ No newline at end of file
diff --git a/src/components/UI/Button/Button.js b/src/components/UI/Button/Button.js
new file mode 100644
index 0000000..679b6b9
--- /dev/null
+++ b/src/components/UI/Button/Button.js
@@ -0,0 +1,13 @@
+import React from 'react';
+
+const Button = ({type, text, ...props}) => {
+ console.log('render Button');
+
+ return (
+
+
+
+ );
+};
+
+export default Button;
\ No newline at end of file
diff --git a/src/components/UI/Input/Input.js b/src/components/UI/Input/Input.js
new file mode 100644
index 0000000..cdbace1
--- /dev/null
+++ b/src/components/UI/Input/Input.js
@@ -0,0 +1,13 @@
+import React, {forwardRef} from 'react';
+
+const Input = forwardRef(({type, name, value, onChange, ...props}, ref) => {
+ console.log('render Input');
+
+ return (
+
+
+
+ );
+});
+
+export default Input;
\ No newline at end of file
diff --git a/src/components/UI/TextArea/TextArea.js b/src/components/UI/TextArea/TextArea.js
new file mode 100644
index 0000000..e799bb3
--- /dev/null
+++ b/src/components/UI/TextArea/TextArea.js
@@ -0,0 +1,15 @@
+import React, {forwardRef} from 'react';
+
+const TextArea = forwardRef(({name, value, onChange, ...props}, ref) => {
+ console.log('render TextArea');
+
+ return (
+
+
+
+ );
+});
+
+export default TextArea;
\ No newline at end of file
diff --git a/src/index.js b/src/index.js
index d563c0f..eaa6def 100644
--- a/src/index.js
+++ b/src/index.js
@@ -6,9 +6,9 @@ import reportWebVitals from './reportWebVitals';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
-
+ //
-
+ //
);
// If you want to start measuring performance in your app, pass a function