What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-01-30 11:35:55
socket io react js
import React, { useState, useEffect } from "react"; import socketIOClient from "socket.io-client"; const ENDPOINT = "http://127.0.0.1:4001"; function App() { const [response, setResponse] = useState(""); useEf... Add solution -
Javascript 2022-01-30 02:30:30
traduire text with api translate google in react
import React, { useEffect, useState } from 'react'; import axios from 'axios'; const Convert = ({ text, language }) => { const [convertedText, setConvertedText] = useState(''); useEffect(() => { const response = axios .post( ... Add solution -
Javascript 2022-01-28 23:20:36
add pdf in react app
import React, { PureComponent } from "react" import { Document, Page } from "react-pdf/build/entry.webpack" import throttle from "lodash.throttle" import pdf from "./pdf.pdf" class App extends PureComponent { con... Add solution -
Other 2022-01-28 18:47:08
vue tel input
>>>url: https://github.com/iamstevendao/vue-tel-input?ref=morioh.com >>>install: npm install vue-tel-input ***************** In vue ************ import Vue from 'vue'; import VueTelInput from 'vue-tel-input'; import 'vue-tel-input... Add solution -
Javascript 2022-01-26 21:10:23
export default arrow function
// You can only export anonymous functions directly export default () => console.log("Hello World."); // If you want named exports, you have to export it seperately const App = () => console.log("This is an app."); export defaul... Add solution -
Javascript 2022-01-26 05:32:28
text input phone number react native
import React, { Component } from 'react'; import { TextInput } from 'react-native'; export default function UselessTextInput() { const [textInputValue, setTextInputValue] = React.useState(''); return ( <TextInput style={{ height: ... 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-26 05:17:04
react bulma login
import React from 'react' import axios from 'axios' import { useHistory } from 'react-router-dom' function Login() { const history = useHistory() const [formData, setFormData] = React.useState({ email: '', password: '', }) const handleChan... Add solution
Best helpers
Ranking is empty