What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-17 23:57:01
vue props only refers to a type but is being used as a value here
<script lang="ts"> import FlashInterface from '@/interfaces/FlashInterface'; import { ref, PropType } from 'vue'; import { useStore } from 'vuex'; export default { props: { message: { type: Object as PropType<FlashInterface>, ... Add solution -
Javascript 2021-09-17 20:40:02
react eznyme fetch api using hooks
//app.js import React from 'react' import FetchData from './FetchData' const fetchUsers = () => fetch('https://jsonplaceholder.typicode.com/users').then((res) => res.json()) function App() { return ( <> <FetchData fetchUsers={... Add solution -
Javascript 2021-09-17 20:11:02
react convert excel to json
import React, { useState } from "react"; import "./App.css"; import * as XLSX from "xlsx"; class ExcelToJson extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(thi... Add solution -
Javascript 2021-09-17 14:09:01
two way binding react
import React, { useState } from “react”; import Child from “./Child”; function Parent(props) { const [text, setText] = useState(“Hello”); return ( <div> <h1>{text}</h1> <Child changeText={(text) =&g... Add solution -
Javascript 2021-09-17 01:37:03
export multiple functions react
export default {func1,func2} Add solution -
Javascript 2021-09-16 19:32:03
add search bar react native
import { SearchBar } from 'react-native-elements'; export default class App extends React.Component { state = { search: '', }; updateSearch = (search) => { this.setState({ search }); }; render() { const { search } = this.state;... Add solution -
Other 2021-09-16 17:22:03
call a method imperatively in lwc
import { LightningElement,wire,track } from 'lwc'; import getAllActiveAccounts from '@salesforce/apex/AccountController.getAllActiveAccounts'; export default class WireMethodDemo extends LightningElement { @track accountsList; @track showAccounts... Add solution
Best helpers
Ranking is empty