Month: December 2017

How to add CSS modules into your react Application?

December 21, 2017

“Believe in yourself && Keep Learning” Step1:- In our example we have take “create-react-app” template as reference. Install this and than perform “yarn eject” What is yarn eject:- it will give you control of the create-react-app and you can install or play with config settings or package.json file. Step2:- Search for “css-loader” inside the file […]

Read More

How to check that javascript object contains the given key?

December 14, 2017

A wet man does not fear the rain. Issue:-How do I check if an object has a key in JavaScript? Example:- // Sample Object const REMINDER = “REMIND_ME”; reminderObj= { INBOX:`${REMINDER}_INBOX`, USERS:`${REMINDER}_USERS`, GROUPS:`${REMINDER}_GROUPS`, } Problem1: Now we want to check that our object have “INBOX” as key or not? Solution:-  Object.prototype.hasOwnProperty.call(reminderObj,”INBOX”); Note:- We could directly […]

Read More

Handy tips and Tools for working with wordpress -Part2?

December 12, 2017

“The best teachers are those who show you where to look, but don’t tell you what to see.” 1.How to add text-slider in wordpress pages ? Solution:- By using the “Text slider“ plugin Activate the plugin > Add the Main and Sub text > Configure the settings > add the wp_text_slider(); ?> in the code […]

Read More