365体育足球滚球比分

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

Conditional Styling use react-jss with Typescript

Incorporating JSS via react-jss in a large project. I'm wondering what the best way to handle conditional styling via props is. For reference this is what my component props look like: buttonType?: '...
0
votes
0answers
5 views

I Get An Error When I Use mapbax-gl.css with react/typescript

When i built a map with mapbox-gl by using react/typescript, i got an error where i imported css file for the mapbox-gl "import 'mapbox-gl/dist/mapbox-gl.css';" i cant figure out what kind ...
0
votes
0answers
13 views

React component props interface based on a prop value through React.forwardRef

I created a component that is either a MuiButton or a MuiLink based on a boolean prop called button. It works but wrapping it in React.forwardRef breaks it. I need to wrap it so the ref is correctly ...
0
votes
0answers
6 views

Websocket, State Management and Null Values on Updates

I have a simple component. Which consumes an API. That API is {items: [{..}]), statuses: {..}}. Doesn't matter what is inside the items and statuses. Data are coming as they should. But there is one ...
0
votes
0answers
11 views

Something went wrong with react table using typescript

I have an typescript error when using react-table with useGlobalFilter. I just followed some instructions on internet. Here is my code: const DataTable : React.FC<IDataTableProps> = ({columns, ...
0
votes
1answer
26 views

Is it fine to use useCallback inside another function?

I have (TypeScript) code like the following: export const DemoComponent = React.memo((props: DemoComponentProps) => { const [state1, setState1] = React.useState<string | undefined>(''); ...
0
votes
1answer
24 views

How to do component inheritance in React Native like on native platform?

My background is an iOS developer and in swift I could do MyInput: UITextField (swift component alternative to React Native Input). This meant that MyInput automatically got all the properties and ...
3
votes
0answers
29 views

Passing functions to child components

I'm creating a simple SPFX extension to manage a task list. I have created a list which gets items via REST through pnpjs. I want to be able to delete said items by clicking on a button. When I click ...
0
votes
2answers
27 views

Typescript - What type of function is it?

Could someone tell me: what type of function is it? Link to deep description? how to call that providing both name and value params private someFunction = (name: string) => (value: number): void =...
1
vote
0answers
20 views

react clearinterval not working for another function

i am working on one of the react project, for that i have used setInterval and clearInterval, it works fine in same function, but when i used clearInterval in another function it is not working, can ...
1
vote
0answers
13 views

Recaptcha timeouts on some browsers

Using react-google-recaptcha-v3 executing await executeRecaptcha("contact"); timeouts on some browsers. I am not sure if the root cause is within the repo (issue) or upstream, as it only ...
0
votes
1answer
14 views

What is the best way for two-way binding a UI component to an observable to reduce rendering?

We are building an MVVM application using mobx and react. Currently our best bet is to create viewmodels and UI components similar to this simplified example. // LoginModel.ts export class LoginModel {...
0
votes
0answers
17 views

How can i reset text in contentEditable use by useRef?

I have a very simple app. I want change empty string, if it has some char. Check up a comment line. const TagInput: React.FC<Props> = (props) => { const domInputRef = useRef<...
-1
votes
1answer
32 views

Pointers in JS?

This function in typescript async function main() { is converted to function main() { return __awaiter(this, void 0, void 0, function* () { Does that * in function* represent a C++ like pointer ?...
0
votes
0answers
16 views

How do i set typescript types for useReducer useContext for the following contextapi code?

Instead of any I wana use proper TS types in the following code. I am new to react TS, pls help... How do i set typescript types for useReducer useContext for the following contextapi code import ...

15 30 50 per page
1
2 3 4 5
611