How to switch a function from a class component to a function component

前端 未结 0 1914
南笙
南笙 2021-02-04 16:51

I used to use class components in react-native. My new app.js file looks like this :

import React, { useState, useEffect } from \'react\';
import {Text} from \'re         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题