React Js tutorial # 11 how to import function in react js

preview_player
Показать описание
use a other file and wirte some function here and import keyword will use for import data in current file. export keyword will export function from function file.

Checkout and subscribe our new channel for technical news
Рекомендации по теме
Комментарии
Автор

Checkout and subscribe our new channel for technical news

codestepbystep
Автор

Thank you very much. I've developed in JS for over 20 years but I haven't done it for the past few years and tips like this are very helpful as I take it up again. On one very popular developer help site, when this question was asked, rather than help with how, they questioned why - like it was necessary to get their gurus' permission to execute a function from another file. I know, that has nothing to do with this but it's just the kind of frustration we run into so often when going to so many question sites and that made your simple and clear answer really gratifying tonight and I just had to vent along with saying thanks.

dalepres
Автор

Thanks. In another tutorial the guy was writing export after const and it wasn´t working for me. This totally did :)

hippitaku
welcome to shbcf.ru