Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react'
import styled from 'styled-components'
import { useResponsiveComponent } from 'atomic-layout'
const Text = useResponsiveComponent(
styled.h1`
color: ${({ color }) => color};
font-size: ${({ size }) => size}px;
`,
)
const Scenario = () => {
const textRef = React.useRef({})
const [refDerivedData, setRefDerivedData] = React.useState(null)
React.useEffect(() => {
setRefDerivedData(textRef.current.id)
}, [textRef.current])
return (
<div></div>