Search Posts

Category: reactjs

How to import angular library in reactjs?

I am trying to use a style library from work for building an application for internal use. I am building the application with React, but the only one I can access is an AngularJs library starting with ‘@SomeStyle’. Is there any way to use the AngularJs library in React? I tried simply use ‘import’ in react, the code compiles, but the browser respond with error Uncaught SyntaxError: Unexpected token import Source: AngularJS

App language: state or setting?

Should I have the app language in the: app’s store and all the app reactive to the store’s state (eventual server side rendering of strings included) settings (ie: not changeable in the front-end), so the language strings and all server side differences are loaded on a page reload, and if we need to change it back a reload might be necessary Is the answer to this based in opinions or is there a clear way […]