import React from "react" import styled from "styled-components" import DefaultPic from '../../assets/profile.jpg' import { useRef } from "react"; import { useEffect } from "react"; import '../../styles/Messages.css' const MeStyleP = styled.p` background-color: lightgray; padding 10px 20px; border-radius 10px 0px 10px 10px; color: black; margin-right: 20px; ` function MessageMe(){ const scrollRef = useRef(); useEffect(() => { scrollRef.current?.scrollIntoView({ behavior: "smooth"}) }, []) return (
profile
bonjours ca va
) } export default MessageMe