What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-12 16:35:07
prism react renderer
jsximport React from 'react'import styled from 'styled-components'import { AiOutlineLike } from 'react-icons/ai' const LikeButton = () => { const [value, setValue] = React.useState(0) return ( <Wrapper> <div> <button onC... Add solution -
TypeScript 2022-01-26 05:31:20
react functional components modal
import React, { useEffect } from "react";import { createPortal } from "react-dom";import styled from "styled-components";import PropTypes from "prop-types"; const Portal = ({ children }) => { const modalRoot = ... Add solution -
Javascript 2022-01-22 08:10:08
how to spot Error: Maximum update depth exceeded. in react
import React, { Component } from 'react'; import styled from 'styled-components'; class Item extends React.Component { constructor(props) { super(props); this.toggle= this.toggle.bind(this); this.state = { det... Add solution -
CSS 2021-09-26 11:31:06
css transition styled components
import React, { Component } from "react"; import ReactDOM from "react-dom"; import { CSSTransition } from "react-transition-group"; import styled from "styled-components"; const Box = styled.div` width: 300px; ... Add solution
Best helpers
Ranking is empty