import React, {useState } from 'react'; import logo from './logo.svg'; import './App.css'; import {Provider, connect} from 'react-redux'; import {actionSearch } from './actions'; import store from './reducers' //import { CounterView, Counter, ConnectedBIGTABLO, ConnectedCounter, ConnectedBigButton } from './components' import {Router, Route, Link, Switch, Redirect} from 'react-router-dom'; import createHistory from "history/createBrowserHistory"; import {actionPosts, actionLogin} from './actions' const history = createHistory() const SearchField = connect(null, {onChange: actionSearch})(({onChange}) => { const [text, setText] = useState('') return ( (setText(e.target.value), onChange(e.target.value))}/> ) }) const Post = ({post}) =>
{post.text}