What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-18 07:35:24
how to pass argument in onFinish method in antdesign
import React from 'react'; import { Form, Input, Button } from 'antd'; const FormItem = Form.Item; class CustomForm extends React.Component { handleFormSubmit = (values) => { const title = values.title; const content = values.content; ... Add solution -
Javascript 2022-02-15 22:50:04
react native spinkit
import React from 'react'; import { View, ActivityIndicator } from "react-native"; const MyActivityIndicator = () => { return ( <View style={{ flex: 1, justifyContent: "center"}}> //size can be "small&quo... Add solution -
Other 2022-02-13 19:40:07
React tottural
import React from 'react' import ReactDOM from 'react-dom' import ReactBootstrap from 'react-bootstrap' import { ListGroup } from 'react-bootstrap' import { ListGroupItem } from 'react-bootstrap' import { Panel } from 'react-bootstrap' import { ButtonGrou... Add solution -
Javascript 2022-02-11 04:35:13
mock a function jest react
import React from 'react'; import { render } from '@testing-library/react'; import '@testing-library/jest-dom/extend-expect' import App from './App'; import { randomNameGenerator } from "./utils"; jest.mock('./utils.js', () => ({ randomN... Add solution -
Javascript 2022-02-10 02:05:02
reactnaviataion change title
import * as React from 'react'; import { View, Text, Button } from 'react-native'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; function HomeScreen({ navigation }) { ret... Add solution -
Other 2022-02-07 00:05:17
how-to-open-sweetalert-popup-on-button-click-in-reactjs
npm install sweetalert2-react ////////////////////////////////////////////////////////// import React from 'react'; import './App.css'; import Swal from 'sweetalert2' class App extends React.Component { opensweetalert = () => { Swal.fire... Add solution