adrianhajdin / project_e_commerce

This is a code repository for the corresponding video tutorial. In this video, we're going to build a fully functional eCommerce application using commerce.js.
https://jsmastery.pro
1.88k stars 504 forks source link

hey I saw u had got that error in the controller "TypeError: props.render is not a function" , this one. I am getting the same now. Did u get it solved ? If yes, then can u pls share how? #39

Closed Amshitha-Nair closed 3 years ago

mvaeve commented 3 years ago

In customTextField.jsx try this?

`

    <Grid item xs={12} sm={6}>
        <Controller
            control={control}
            defaultValue = ""
            name={name}
            render={({ field }) => (
                <TextField
                    {...field}
                    fullWidth
                    label={label}
                    required
                />
            )}
        />
    </Grid>
`
Amshitha-Nair commented 3 years ago

In customTextField.jsx try this?

`

    <Grid item xs={12} sm={6}>
        <Controller
            control={control}
            defaultValue = ""
            name={name}
            render={({ field }) => (
                <TextField
                    {...field}
                    fullWidth
                    label={label}
                    required
                />
            )}
        />
    </Grid>
`

thank u so much. Yes I'll try.

Rallanvila commented 2 years ago

In customTextField.jsx try this?

`

    <Grid item xs={12} sm={6}>
        <Controller
            control={control}
            defaultValue = ""
            name={name}
            render={({ field }) => (
                <TextField
                    {...field}
                    fullWidth
                    label={label}
                    required
                />
            )}
        />
    </Grid>
`

Tysm!!!