What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-08 10:44:02
make a fixed list in react native
export default function App() { const [enteredGoal,setEnteredGoal] = useState(''); const [courseGoals, setCourseGoals] = useState([]); const goalInputHandler = (enteredText) => { setEnteredGoal(enteredText); } const addGoalHandler = () =&... Add solution -
Javascript 2021-09-05 15:18:02
react get input value on button click functional component
const input = props => { let textInput = React.createRef(); function handleClick() { console.log(textInput.current.value); } return ( <div> <input ref={textInput} placeholder="Type a message..." /> <div onC... Add solution -
Javascript 2021-09-05 12:44:02
just show number keyboard react native
/\*\* \* Sample React Native App \* https://github.com/facebook/react-native \* @flow \*/ import React, { Component } from "react"; import { Platform, StyleSheet, View, Button, TextInput, } from "react-native"; expo... Add solution -
Javascript 2021-09-04 04:29:01
use ref in component reactjs
function MyFunctionComponent() { return <input />; } class Parent extends React.Component { constructor(props) { super(props); this.textInput = React.createRef(); } render() { // Ça ne fonctionnera pas ! return ( ... Add solution -
Other 2021-09-01 07:43:02
auto navigate to home screen after otp login flutter
class SignUpView extends StatefulWidget { @override _SignUpViewState createState() => _SignUpViewState(); } class _SignUpViewState extends State<SignUpView> { final formKey = new GlobalKey<FormState>(); String phoneNo, verificati... Add solution